3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $t = '1/99999'; list($m,$d)=explode("/",$t);$m%=12;$d%=365;$i=0;while($d>100)$d-=[31,28,31,30,31,30,31,31,30,31,30,31][$i++];$m+=$i;echoDateTime::createFromFormat("m/d","$m/$d")->format("n/j");
based on 5cRp9
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'echoDateTime' not found in /in/QZvvs:3 Stack trace: #0 {main} thrown in /in/QZvvs on line 3
Process exited with code 255.
Output for hhvm-3.11.1 - 3.17.3
Fatal error: Uncaught Error: Class undefined: echoDateTime in /in/QZvvs:3 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.10.1
Fatal error: Class undefined: echoDateTime in /in/QZvvs on line 3
Process exited with code 255.
Output for 5.5.0 - 5.6.30
Fatal error: Class 'echoDateTime' not found in /in/QZvvs on line 3
Process exited with code 255.