3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for ($i = 0; $i < 5000000000; $i ++) { $fp = fopen("/dev/null", "w"); if (($i % 500000) == 0) { var_dump($fp); system("date"); } // if fclose($fp); }
based on VjR6e
Output for 5.6.28, 7.0.14 - 7.1.0
resource(5) of type (stream) resource(500006) of type (stream)
Process exited with code 137.
Output for 7.0.2, 7.0.4 - 7.0.6
resource(5) of type (stream) resource(500006) of type (stream) resource(1000007) of type (stream) resource(1500008) of type (stream)
Process exited with code 137.
Output for 5.5.24 - 5.6.21, 7.0.0 - 7.0.1, 7.0.3
resource(5) of type (stream) resource(500006) of type (stream) resource(1000007) of type (stream)
Process exited with code 137.
Output for 5.4.43 - 5.4.45
resource(5) of type (stream)
Process exited with code 137.
Output for 5.2.3 - 5.2.15, 5.2.17, 5.3.1, 5.3.3 - 5.4.2, 5.4.6, 5.4.10 - 5.4.12, 5.4.22, 5.4.27 - 5.4.28, 5.4.35 - 5.4.42
resource(5) of type (stream) sh: 1: date: not found
Process exited with code 137.
Output for 5.2.16, 5.3.0, 5.3.2, 5.4.3 - 5.4.5, 5.4.7 - 5.4.9, 5.4.13 - 5.4.21, 5.4.23 - 5.4.26, 5.4.29 - 5.4.34
resource(5) of type (stream) resource(500006) of type (stream) sh: 1: date: not found sh: 1: date: not found
Process exited with code 137.
Output for 5.0.0 - 5.2.0, 5.2.2
resource(2) of type (stream) sh: 1: date: not found
Process exited with code 137.
Output for 5.2.1
resource(2) of type (stream) resource(500003) of type (stream) sh: 1: date: not found sh: 1: date: not found
Process exited with code 137.
Output for 4.3.1 - 4.4.9
resource(1) of type (stream) sh: 1: date: not found
Process exited with code 137.
Output for 4.3.0
resource(1) of type (stream)
Process exited with code 137.