3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if (!defined('PHP_VERSION_ID')) { $version = explode('.', PHP_VERSION); $version_id = $version[0] * 10000 + $version[1] * 100 + $version[2]; define('PHP_VERSION_ID', $version_id); } if (PHP_VERSION_ID < 50300) { $message = 'PHP version ' . PHP_VERSION . ' is not supported.'; if (class_exists('RuntimeException')) { throw new RuntimeException($message); } else { trigger_error($message, E_USER_ERROR); } }
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Output for 5.2.17
Fatal error: Uncaught exception 'RuntimeException' with message 'PHP version 5.2.17 is not supported.' in /in/rl9GO:10 Stack trace: #0 {main} thrown in /in/rl9GO on line 10
Process exited with code 255.
Output for 5.2.16
Fatal error: Uncaught exception 'RuntimeException' with message 'PHP version 5.2.16 is not supported.' in /in/rl9GO:10 Stack trace: #0 {main} thrown in /in/rl9GO on line 10
Process exited with code 255.
Output for 5.2.15
Fatal error: Uncaught exception 'RuntimeException' with message 'PHP version 5.2.15 is not supported.' in /in/rl9GO:10 Stack trace: #0 {main} thrown in /in/rl9GO on line 10
Process exited with code 255.
Output for 5.2.14
Fatal error: Uncaught exception 'RuntimeException' with message 'PHP version 5.2.14 is not supported.' in /in/rl9GO:10 Stack trace: #0 {main} thrown in /in/rl9GO on line 10
Process exited with code 255.
Output for 5.2.13
Fatal error: Uncaught exception 'RuntimeException' with message 'PHP version 5.2.13 is not supported.' in /in/rl9GO:10 Stack trace: #0 {main} thrown in /in/rl9GO on line 10
Process exited with code 255.
Output for 5.2.12
Fatal error: Uncaught exception 'RuntimeException' with message 'PHP version 5.2.12 is not supported.' in /in/rl9GO:10 Stack trace: #0 {main} thrown in /in/rl9GO on line 10
Process exited with code 255.
Output for 5.2.11
Fatal error: Uncaught exception 'RuntimeException' with message 'PHP version 5.2.11 is not supported.' in /in/rl9GO:10 Stack trace: #0 {main} thrown in /in/rl9GO on line 10
Process exited with code 255.
Output for 5.2.10
Fatal error: Uncaught exception 'RuntimeException' with message 'PHP version 5.2.10 is not supported.' in /in/rl9GO:10 Stack trace: #0 {main} thrown in /in/rl9GO on line 10
Process exited with code 255.
Output for 5.2.9
Fatal error: Uncaught exception 'RuntimeException' with message 'PHP version 5.2.9 is not supported.' in /in/rl9GO:10 Stack trace: #0 {main} thrown in /in/rl9GO on line 10
Process exited with code 255.
Output for 5.2.8
Fatal error: Uncaught exception 'RuntimeException' with message 'PHP version 5.2.8 is not supported.' in /in/rl9GO:10 Stack trace: #0 {main} thrown in /in/rl9GO on line 10
Process exited with code 255.
Output for 5.2.7
Fatal error: Uncaught exception 'RuntimeException' with message 'PHP version 5.2.7 is not supported.' in /in/rl9GO:10 Stack trace: #0 {main} thrown in /in/rl9GO on line 10
Process exited with code 255.
Output for 5.2.6
Fatal error: Uncaught exception 'RuntimeException' with message 'PHP version 5.2.6 is not supported.' in /in/rl9GO:10 Stack trace: #0 {main} thrown in /in/rl9GO on line 10
Process exited with code 255.
Output for 5.2.5
Fatal error: Uncaught exception 'RuntimeException' with message 'PHP version 5.2.5 is not supported.' in /in/rl9GO:10 Stack trace: #0 {main} thrown in /in/rl9GO on line 10
Process exited with code 255.
Output for 5.2.4
Fatal error: Uncaught exception 'RuntimeException' with message 'PHP version 5.2.4 is not supported.' in /in/rl9GO:10 Stack trace: #0 {main} thrown in /in/rl9GO on line 10
Process exited with code 255.
Output for 5.2.3
Fatal error: Uncaught exception 'RuntimeException' with message 'PHP version 5.2.3 is not supported.' in /in/rl9GO:10 Stack trace: #0 {main} thrown in /in/rl9GO on line 10
Process exited with code 255.
Output for 5.2.2
Fatal error: Uncaught exception 'RuntimeException' with message 'PHP version 5.2.2 is not supported.' in /in/rl9GO:10 Stack trace: #0 {main} thrown in /in/rl9GO on line 10
Process exited with code 255.
Output for 5.2.1
Fatal error: Uncaught exception 'RuntimeException' with message 'PHP version 5.2.1 is not supported.' in /in/rl9GO:10 Stack trace: #0 {main} thrown in /in/rl9GO on line 10
Process exited with code 255.
Output for 5.2.0
Fatal error: Uncaught exception 'RuntimeException' with message 'PHP version 5.2.0 is not supported.' in /in/rl9GO:10 Stack trace: #0 {main} thrown in /in/rl9GO on line 10
Process exited with code 255.
Output for 5.1.6
Fatal error: Uncaught exception 'RuntimeException' with message 'PHP version 5.1.6 is not supported.' in /in/rl9GO:10 Stack trace: #0 {main} thrown in /in/rl9GO on line 10
Process exited with code 255.
Output for 5.1.5
Fatal error: Uncaught exception 'RuntimeException' with message 'PHP version 5.1.5 is not supported.' in /in/rl9GO:10 Stack trace: #0 {main} thrown in /in/rl9GO on line 10
Process exited with code 255.
Output for 5.1.4
Fatal error: Uncaught exception 'RuntimeException' with message 'PHP version 5.1.4 is not supported.' in /in/rl9GO:10 Stack trace: #0 {main} thrown in /in/rl9GO on line 10
Process exited with code 255.
Output for 5.1.3
Fatal error: Uncaught exception 'RuntimeException' with message 'PHP version 5.1.3 is not supported.' in /in/rl9GO:10 Stack trace: #0 {main} thrown in /in/rl9GO on line 10
Process exited with code 255.
Output for 5.1.2
Fatal error: Uncaught exception 'RuntimeException' with message 'PHP version 5.1.2 is not supported.' in /in/rl9GO:10 Stack trace: #0 {main} thrown in /in/rl9GO on line 10
Process exited with code 255.
Output for 5.1.1
Fatal error: Uncaught exception 'RuntimeException' with message 'PHP version 5.1.1 is not supported.' in /in/rl9GO:10 Stack trace: #0 {main} thrown in /in/rl9GO on line 10
Process exited with code 255.
Output for 5.1.0
Fatal error: Uncaught exception 'RuntimeException' with message 'PHP version 5.1.0 is not supported.' in /in/rl9GO:10 Stack trace: #0 {main} thrown in /in/rl9GO on line 10
Process exited with code 255.
Output for 5.0.5
Fatal error: PHP version 5.0.5 is not supported. in /in/rl9GO on line 12
Process exited with code 255.
Output for 5.0.4
Fatal error: PHP version 5.0.4 is not supported. in /in/rl9GO on line 12
Process exited with code 255.
Output for 5.0.3
Fatal error: PHP version 5.0.3 is not supported. in /in/rl9GO on line 12
Process exited with code 255.
Output for 5.0.2
Fatal error: PHP version 5.0.2 is not supported. in /in/rl9GO on line 12
Process exited with code 255.
Output for 5.0.1
Fatal error: PHP version 5.0.1 is not supported. in /in/rl9GO on line 12
Process exited with code 255.
Output for 5.0.0
Fatal error: PHP version 5.0.0 is not supported. in /in/rl9GO on line 12
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_NEW in /in/rl9GO on line 10
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_NEW in /in/rl9GO on line 10
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/rl9GO on line 10
Process exited with code 255.