3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dt = new DateTime; for ($w = 1; $w <= 52; $w++) { $dt->setISODate($2013, $w); echo $dt->format('Y-m-d W') . "\n\n"; }
Output for 5.4.0 - 5.4.21
Parse error: syntax error, unexpected '2013' (T_LNUMBER), expecting variable (T_VARIABLE) or '$' in /in/HShQE on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /in/HShQE on line 5
Process exited with code 255.