3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $n = new \NumberFormatter('de'); var_dump($n->parse('1,999999999999999'));
Output for 7.1.0
Fatal error: Uncaught ArgumentCountError: NumberFormatter::__construct() expects at least 2 parameters, 1 given in /in/sZ6co:2 Stack trace: #0 /in/sZ6co(2): NumberFormatter->__construct('de') #1 {main} thrown in /in/sZ6co on line 2
Process exited with code 255.
Output for 7.0.6 - 7.0.14
Fatal error: Uncaught TypeError: NumberFormatter::__construct() expects at least 2 parameters, 1 given in /in/sZ6co:2 Stack trace: #0 /in/sZ6co(2): NumberFormatter->__construct('de') #1 {main} thrown in /in/sZ6co on line 2
Process exited with code 255.
Output for 7.0.0 - 7.0.5
Fatal error: Uncaught Error: Class 'NumberFormatter' not found in /in/sZ6co:2 Stack trace: #0 {main} thrown in /in/sZ6co on line 2
Process exited with code 255.
Output for 5.6.21 - 5.6.28
Warning: NumberFormatter::__construct() expects at least 2 parameters, 1 given in /in/sZ6co on line 2 Fatal error: Call to a member function parse() on null in /in/sZ6co on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.29, 5.5.0 - 5.5.34, 5.6.0 - 5.6.20
Fatal error: Class 'NumberFormatter' not found in /in/sZ6co on line 2
Process exited with code 255.
Output for 5.4.0 - 5.4.45, 5.5.35
Warning: NumberFormatter::__construct() expects at least 2 parameters, 1 given in /in/sZ6co on line 2 Fatal error: Call to a member function parse() on a non-object in /in/sZ6co on line 4
Process exited with code 255.
Output for 5.2.3 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/sZ6co on line 2 Fatal error: Class 'NumberFormatter' not found in /in/sZ6co on line 2
Process exited with code 255.
Output for 5.0.0 - 5.2.2
<br /> <b>Warning</b>: Unexpected character in input: '\' (ASCII=92) state=1 in <b>/in/sZ6co</b> on line <b>2</b><br /> <br /> <b>Fatal error</b>: Class 'NumberFormatter' not found in <b>/in/sZ6co</b> on line <b>2</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.4.9
<br /> <b>Warning</b>: Unexpected character in input: '\' (ASCII=92) state=1 in <b>/in/sZ6co</b> on line <b>2</b><br /> <br /> <b>Fatal error</b>: Cannot instantiate non-existent class: numberformatter in <b>/in/sZ6co</b> on line <b>2</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br /> <b>Warning</b>: Unexpected character in input: '\' (ASCII=92) state=1 in <b>/in/sZ6co</b> on line <b>2</b><br /> <br /> <b>Fatal error</b>: Cannot instantiate non-existent class: numberformatter in <b>/in/sZ6co</b> on line <b>2</b><br />