3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo sprintf('%.4d %.4f', 0xFF, 0xFF); echo printf("\n%d and %.2f makes %o", 4+7,4/7,47); echo preg_replace('/(\w+) (\w+)/','\0, \2, \1'. 'Rodrigo Capile');
based on pi8T3
Output for 5.3.0 - 7.2.0
255 255.0000 11 and 0.57 makes 5721 Warning: preg_replace() expects at least 3 parameters, 2 given in /in/sWrN2 on line 5
Output for 4.3.7 - 5.2.17
255 255.0000 11 and 0.57 makes 5721 Warning: Wrong parameter count for preg_replace() in /in/sWrN2 on line 5
Output for 4.3.0 - 4.3.6
255 255.0000 11 and 0.57 makes 57 Warning: Wrong parameter count for preg_replace() in /in/sWrN2 on line 5