3v4l.org

run code in 300+ PHP versions simultaneously
<?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.

preferences:
168.86 ms | 1395 KiB | 57 Q