3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $reflector = new \ReflectionExtension('intl'); ob_start(); $reflector->info(); $output = ob_get_clean(); preg_match('/^ICU version => (.*)$/m', $output, $matches); print_r($matches);
based on nBdpA
Output for 7.0.14 - 7.1.0
Array ( [0] => ICU version => 58.1 [1] => 58.1 )
Output for 5.5.35, 5.6.21 - 5.6.28, 7.0.6
Array ( [0] => ICU version => 57.1 [1] => 57.1 )
Output for 7.0.5
Fatal error: Uncaught ReflectionException: Extension intl does not exist in /in/7bJlV:3 Stack trace: #0 /in/7bJlV(3): ReflectionExtension->__construct('intl') #1 {main} thrown in /in/7bJlV on line 3
Process exited with code 255.
Output for 5.5.24 - 5.5.28, 5.5.31 - 5.5.33, 5.6.8 - 5.6.12, 5.6.16 - 5.6.19, 7.0.0 - 7.0.4
Array ( [0] => ICU version => 56.1 [1] => 56.1 )
Output for 5.3.0 - 5.4.32, 5.5.29 - 5.5.30, 5.5.34, 5.6.13 - 5.6.15, 5.6.20
Fatal error: Uncaught exception 'ReflectionException' with message 'Extension intl does not exist' in /in/7bJlV:3 Stack trace: #0 /in/7bJlV(3): ReflectionExtension->__construct('intl') #1 {main} thrown in /in/7bJlV on line 3
Process exited with code 255.
Output for 5.4.39 - 5.4.45
Array ( [0] => ICU version => 55.1 [1] => 55.1 )
Output for 5.4.34 - 5.4.38
Array ( [0] => ICU version => 54.1 [1] => 54.1 )
Output for 5.0.3 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/7bJlV on line 3 Fatal error: Uncaught exception 'ReflectionException' with message 'Extension intl does not exist' in /in/7bJlV:3 Stack trace: #0 /in/7bJlV(3): ReflectionExtension->__construct('intl') #1 {main} thrown in /in/7bJlV on line 3
Process exited with code 255.
Output for 5.0.0 - 5.0.2
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/7bJlV on line 3 Fatal error: Uncaught exception 'ReflectionException' with message 'Extension intl does not exist' in /in/7bJlV:3 Stack trace: #0 {main} thrown in /in/7bJlV on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/7bJlV on line 3 Fatal error: Cannot instantiate non-existent class: reflectionextension in /in/7bJlV on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/7bJlV on line 3 Fatal error: Cannot instantiate non-existent class: reflectionextension in /in/7bJlV on line 3