3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $fmt = new NumberFormatter("en_US"); var_dump($fmt->parse("2,356.26"));
Output for 7.1.0
Fatal error: Uncaught ArgumentCountError: NumberFormatter::__construct() expects at least 2 parameters, 1 given in /in/oi44m:2 Stack trace: #0 /in/oi44m(2): NumberFormatter->__construct('en_US') #1 {main} thrown in /in/oi44m on line 2
Process exited with code 255.
Output for 7.0.0 - 7.0.14
Fatal error: Uncaught TypeError: NumberFormatter::__construct() expects at least 2 parameters, 1 given in /in/oi44m:2 Stack trace: #0 /in/oi44m(2): NumberFormatter->__construct('en_US') #1 {main} thrown in /in/oi44m on line 2
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Fatal error: Uncaught exception 'Exception' with message 'NumberFormatter::__construct() expects at least 2 parameters, 1 given' in /in/oi44m:2 Stack trace: #0 /in/oi44m(2): NumberFormatter->__construct() #1 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.28
Warning: NumberFormatter::__construct() expects at least 2 parameters, 1 given in /in/oi44m on line 2 Fatal error: Call to a member function parse() on null in /in/oi44m on line 3
Process exited with code 255.
Output for 5.4.0 - 5.5.37
Warning: NumberFormatter::__construct() expects at least 2 parameters, 1 given in /in/oi44m on line 2 Fatal error: Call to a member function parse() on a non-object in /in/oi44m on line 3
Process exited with code 255.
Output for 5.0.0 - 5.3.29
Fatal error: Class 'NumberFormatter' not found in /in/oi44m on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: numberformatter in /in/oi44m on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: numberformatter in /in/oi44m on line 2