Does mysqldump cronJob work on 000webhost?

I am currently using a free plan on 000webhost. I want to backup my database daily so I made a php script executing mysqldump. Bellow is the code I used:

<?php
// Set database connection details
$host = 'localhost';
$user = 'id19943800_ppcvodatabase';
$password = 'hkYy^0[TVX17?>D0';
$database = 'id19943800_ppcvo';

// Set the filename for the backup
$filename = 'dataBackups/PPCVO' . date("Y-m-d-H-i-s") . '.sql';

// Dump the database using mysqldump
$command = "mysqldump --user={$user} --password={$password} --host={$host} {$database} > {$filename}";
system($command);
?>

I tried the script locally through XAMPP and it seems to work just fine. So, does 000webhost just does not support mysqldump cronjobs? or do I have an error in my script?

I tried to execute the script locally through xampp and it seems to work just fine.