3v4l.org

run code in 300+ PHP versions simultaneously
<?php function inverse($x) { if ($x=0;) { throw new Exception('Division by zero.'); } return 1/$x; } try { echo inverse(5) . "\n"; echo inverse(0) . "\n"; } catch (Exception $e) { echo 'Caught exception: ', $e->getMessage(), "\n"; } ?>

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.200.0090.03412.40
5.4.190.0110.04712.39
5.4.180.0140.04312.39
5.4.170.0190.03812.41
5.4.160.0160.04212.40
5.4.150.0190.03912.39
5.4.140.0190.03912.08
5.4.130.0130.04612.06
5.4.120.0160.04112.04
5.4.110.0110.04512.03
5.4.100.0160.04312.02
5.4.90.0150.04212.03
5.4.80.0220.03512.02
5.4.70.0200.06612.02
5.4.60.0150.04112.02
5.4.50.0140.04212.02
5.4.40.0140.04212.01
5.4.30.0140.04312.00
5.4.20.0170.03912.00
5.4.10.0110.04512.01
5.4.00.0230.09211.50
5.3.270.0180.04412.72
5.3.260.0210.04212.72
5.3.250.0180.04412.72
5.3.240.0380.08512.72
5.3.230.0220.04112.71
5.3.220.0210.04612.68
5.3.210.0150.04712.68
5.3.200.0180.04212.68
5.3.190.0340.08812.68
5.3.180.0130.04812.68
5.3.170.0200.04012.67
5.3.160.0130.04612.68
5.3.150.0160.04312.67
5.3.140.0200.03912.66
5.3.130.0100.05112.66
5.3.120.0760.04312.66
5.3.110.0110.05012.66
5.3.100.0400.08012.14
5.3.90.0160.04212.10
5.3.80.0170.04512.09
5.3.70.0200.04312.09
5.3.60.0160.04312.07
5.3.50.0180.04412.02
5.3.40.0160.04612.03
5.3.30.0280.06011.98
5.3.20.0170.04211.77
5.3.10.0130.04411.72
5.3.00.0160.04211.71

preferences:
144.58 ms | 1394 KiB | 7 Q