3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define("T1","one"); define("T2","two"); var t3 = 'mierder'; $test='numbers %2$s %1$s, %3$s'; $test=sprintf($test, T1,T2, t3); echo $test;
based on G0r3n
Output for 7.0.0 - 7.0.2
Parse error: syntax error, unexpected 'var' (T_VAR), expecting end of file in /in/WfkZ2 on line 4
Process exited with code 255.
Output for 5.4.12 - 5.6.17
Parse error: syntax error, unexpected 'var' (T_VAR) in /in/WfkZ2 on line 4
Process exited with code 255.
Output for 5.3.22 - 5.3.29
Parse error: syntax error, unexpected T_VAR in /in/WfkZ2 on line 4
Process exited with code 255.