3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class LemonException extends \Exception{} class OrangeException extends \Exception{} try{ }catch(LemonException $e){ echo 'lemon'; }catch(OrangeException $e){ echo 'orange'; }

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.3.10.0070.01116.00
7.3.00.0110.01016.16
7.2.130.0100.00816.13
7.2.120.0140.00516.49
7.2.110.0090.00516.39
7.2.100.0060.00616.50
7.2.90.0050.00916.23
7.2.80.0090.00516.38
7.2.70.0110.00816.73
7.2.60.0050.01216.32
7.2.50.0070.00916.44
7.2.40.0100.00516.60
7.2.30.0070.00916.39
7.2.20.0160.00516.37
7.2.10.0070.00916.36
7.2.00.0100.00517.31
7.1.250.0080.00815.33
7.1.100.0030.00917.93
7.1.70.0000.00916.94
7.1.60.0170.00719.50
7.1.50.0130.01016.79
7.1.00.0030.07022.30
7.0.200.0260.00014.60
7.0.140.0030.03321.94
7.0.60.0000.08719.86
7.0.50.0000.06717.86
7.0.40.0100.04020.06
7.0.30.0400.05320.20
7.0.20.0200.04320.23
7.0.10.0270.07020.21
7.0.00.0070.04320.07
5.6.280.0100.06321.07
5.6.210.0000.08020.73
5.6.200.0030.05718.16
5.6.190.0030.08720.56
5.6.180.0300.07020.59
5.6.170.0130.04320.50
5.6.160.0070.08320.52
5.6.150.0030.04018.27
5.6.140.0030.05018.15
5.6.130.0100.08018.28
5.6.120.0200.07321.12
5.6.110.0030.04021.00
5.6.100.0130.07321.00
5.6.90.0170.06720.99
5.6.80.0100.07720.49
5.6.70.0330.06020.48
5.5.350.0270.07320.42
5.5.340.0070.08317.95
5.5.330.0100.03320.27
5.5.320.0030.08020.26
5.5.310.0400.07320.23
5.5.300.0030.04017.95
5.5.290.0000.05017.96
5.5.280.0070.07020.88
5.5.270.0100.08320.77
5.5.260.0030.04020.88
5.5.250.0170.07020.79
5.5.240.0030.08020.16
5.4.450.0400.05019.55
5.4.440.0870.06019.60
5.4.430.0730.06719.59
5.4.420.0900.07019.61
5.4.410.0100.05318.93
5.4.400.0570.05018.62
5.4.390.0570.05318.50
5.4.380.0430.07318.78
5.4.370.0730.06318.77
5.4.360.0530.05718.32
5.4.350.0400.05718.59
5.4.340.0670.06018.76
5.4.320.0370.07718.74
5.4.310.0430.04718.80
5.4.300.0500.05718.58
5.4.290.0400.07318.78
5.4.280.0500.05318.77
5.4.270.0330.08018.73
5.4.260.0670.05318.71
5.4.250.0300.06718.49
5.4.240.0430.05318.64
5.4.230.0470.07018.61
5.4.220.0500.05318.71
5.4.210.0500.06018.47
5.4.200.0300.06016.84
5.4.190.0470.05318.51
5.4.180.0430.06018.45
5.4.170.0470.05318.70
5.4.160.0170.06718.79
5.4.150.0370.07318.73
5.4.140.0300.06016.45
5.4.130.0370.05016.45
5.4.120.0530.04316.31
5.4.110.0370.04716.30
5.4.100.0230.06316.29
5.4.90.0300.07316.29
5.4.80.0370.05316.23
5.4.70.0370.07016.31
5.4.60.0300.05016.23
5.4.50.0400.06016.26
5.4.40.0630.06316.19
5.4.30.0470.06316.23
5.4.20.0200.06316.15
5.4.10.0430.04316.29
5.4.00.0470.05715.74
5.3.290.0470.07314.66
5.3.280.0600.05014.76
5.3.270.0370.07314.81
5.3.260.0600.05714.89
5.3.250.0600.05714.81
5.3.240.0470.06014.80
5.3.230.0570.05314.65
5.3.220.0470.05014.55
5.3.210.0330.07314.70
5.3.200.0600.07014.70
5.3.190.0530.07014.77
5.3.180.0470.05714.62
5.3.170.0600.06014.55
5.3.160.0530.07714.73
5.3.150.0530.06714.75
5.3.140.0370.06714.68
5.3.130.0330.06314.71
5.3.120.0300.07714.58
5.3.110.0370.07314.73
5.3.100.0500.04714.22
5.3.90.0430.04014.07
5.3.80.0330.05714.06
5.3.70.0330.06014.23
5.3.60.0300.05313.99
5.3.50.0530.05314.08
5.3.40.0330.05714.08
5.3.30.0470.07314.11
5.3.20.0430.05313.80
5.3.10.0500.05013.69
5.3.00.0330.07313.73
5.2.170.0400.06011.25
5.2.160.0530.04711.28
5.2.150.0330.05711.16
5.2.140.0500.05711.17
5.2.130.0330.06311.13
5.2.120.0270.04311.24
5.2.110.0270.05711.08
5.2.100.0370.05311.18
5.2.90.0300.04711.23
5.2.80.0470.03311.32
5.2.70.0330.04711.08
5.2.60.0300.04311.05
5.2.50.0370.05311.24
5.2.40.0170.06311.02
5.2.30.0270.05011.19
5.2.20.0230.04711.17
5.2.10.0400.04010.91
5.2.00.0370.06010.73
5.1.60.0230.03710.00
5.1.50.0370.04010.10
5.1.40.0370.03710.05
5.1.30.0270.04010.39
5.1.20.0170.05010.39
5.1.10.0230.04010.12
5.1.00.0200.03710.27
5.0.50.0130.0338.55
5.0.40.0130.0438.44
5.0.30.0200.0538.23
5.0.20.0200.0308.22
5.0.10.0130.0378.21
5.0.00.0200.0538.26
4.4.90.0130.0275.96
4.4.80.0100.0235.91
4.4.70.0070.0275.85
4.4.60.0070.0275.93
4.4.50.0070.0375.91
4.4.40.0130.0435.91
4.4.30.0200.0235.88
4.4.20.0200.0205.97
4.4.10.0300.0206.03
4.4.00.0070.0505.99
4.3.110.0100.0305.89
4.3.100.0130.0235.84
4.3.90.0100.0235.83
4.3.80.0000.0405.81
4.3.70.0070.0305.79
4.3.60.0100.0275.82
4.3.50.0200.0275.88
4.3.40.0170.0305.74
4.3.30.0070.0235.50
4.3.20.0070.0235.50
4.3.10.0030.0235.50
4.3.00.0100.0236.80