3v4l.org

run code in 300+ PHP versions simultaneously
<?php public function spin ($lambda, $wait = 60) { for ($i = 0; $i < $wait; $i++) { try { if ($lambda($this)) { return true; } } catch (Exception $e) { // do nothing } sleep(1); } $backtrace = debug_backtrace(); throw new Exception( "Timeout thrown by " . $backtrace[1]['class'] . "::" . $backtrace[1]['function'] . "()\n" . $backtrace[1]['file'] . ", line " . $backtrace[1]['line'] ); }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.300.0080.04412.50
5.4.290.0060.03912.49
5.4.280.0070.03512.39
5.4.270.0080.03812.39
5.4.260.0070.03712.39
5.4.250.0070.03812.39
5.4.240.0090.03512.39
5.4.230.0070.03712.38
5.4.220.0050.03712.38
5.4.210.0040.03712.38
5.4.200.0030.04112.38
5.4.190.0050.03812.38
5.4.180.0080.03512.38
5.4.170.0060.03612.39
5.4.160.0090.03312.38
5.4.150.0080.03512.38
5.4.140.0080.03412.07
5.4.130.0120.03512.05
5.4.120.0050.04012.02
5.4.110.0060.04012.02
5.4.100.0100.04312.02
5.4.90.0040.03912.02
5.4.80.0050.03812.01
5.4.70.0040.03612.00
5.4.60.0060.03412.01
5.4.50.0060.03612.00
5.4.40.0080.03811.99
5.4.30.0040.03611.99
5.4.20.0080.03611.99
5.4.10.0100.04611.99
5.4.00.0050.03911.48
5.3.280.0060.03812.71
5.3.270.0070.04112.72
5.3.260.0060.03912.72
5.3.250.0060.04112.72
5.3.240.0100.03512.71
5.3.230.0060.03812.71
5.3.220.0090.04312.68
5.3.210.0070.04012.68
5.3.200.0100.03312.68
5.3.190.0030.04012.67
5.3.180.0050.03812.68
5.3.170.0070.03612.67
5.3.160.0060.03612.67
5.3.150.0040.03912.67
5.3.140.0050.03712.66
5.3.130.0050.04012.66
5.3.120.0050.03912.66
5.3.110.0050.04012.66
5.3.100.0060.04412.12
5.3.90.0110.03512.08
5.3.80.0060.03912.07
5.3.70.0090.03612.07
5.3.60.0070.03612.07
5.3.50.0050.03612.00
5.3.40.0050.04412.00
5.3.30.0050.03711.95
5.3.20.0080.03311.73
5.3.10.0070.04811.70
5.3.00.0060.03511.68

preferences:
138.6 ms | 1394 KiB | 7 Q