3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a=2.5; printf("%s",$a); // prints out 2.5 echo $a; // prints out 2.5 setlocale(LC_ALL,"de_DE"); printf("%s",$a); // prints out 2,5 echo $a; // prints out 2,5
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.1.0
2.52.52.52.5
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/PGfOP on line 8
Process exited with code 255.