3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $nDate = new date_create(); date_sub($nDate, date_interval_create_from_date_string("30 days")); echo $nDate->format('Y-m-d'); ?>
based on chbZF
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'date_create' not found in /in/cN6bB:3 Stack trace: #0 {main} thrown in /in/cN6bB on line 3
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Fatal error: Class 'date_create' not found in /in/cN6bB on line 3
Process exited with code 255.