3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define("T1","one"); define("T2","two"); define("T3", 'mierder'); $test='numbers %2$s %1$s, %3$s'; $test=sprintf($test, T1,T2, t3); echo $test;
based on WfkZ2
Output for 7.2.0
Warning: Use of undefined constant t3 - assumed 't3' (this will throw an Error in a future version of PHP) in /in/Iv4Up on line 8 numbers two one, t3
Output for 5.3.22 - 7.1.10
Notice: Use of undefined constant t3 - assumed 't3' in /in/Iv4Up on line 8 numbers two one, t3