3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $number = 1234.56; // let's print the international format for the en_US locale setlocale(LC_MONETARY, 'en_US'); echo money_format('%n', $number) . "\n"; // USD 1,234.56
based on mfS3N
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.2.0
1234.56
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/iKqUd on line 8
Process exited with code 255.