3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try{ throw new Exception('Error'); }catch(Exception $e ){ echo 'error'; }

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.2.00.0030.01018.99
7.1.100.0080.00818.04
7.1.70.0070.01016.86
7.1.60.0070.01819.70
7.1.50.0030.02116.86
7.1.00.0030.07722.57
7.0.200.0080.00016.71
7.0.140.0030.07322.07
7.0.100.0100.04019.99
7.0.90.0030.05319.89
7.0.80.0070.03319.96
7.0.70.0030.04019.85
7.0.60.0000.04319.91
7.0.50.0130.03720.35
7.0.40.0070.04019.96
7.0.30.0070.08720.10
7.0.20.0030.08320.08
7.0.10.0170.07320.13
7.0.00.0030.07320.16
5.6.280.0030.07321.04
5.6.250.0000.04720.74
5.6.240.0000.04320.66
5.6.230.0030.04720.58
5.6.220.0030.05020.57
5.6.210.0000.04320.66
5.6.200.0030.05321.00
5.6.190.0030.04321.13
5.6.180.0100.05021.00
5.6.170.0070.08721.07
5.6.160.0170.06321.03
5.6.150.0000.07320.88
5.6.140.0070.07321.09
5.6.130.0030.05721.04
5.6.120.0000.06321.05
5.6.110.0030.06321.06
5.6.100.0130.03721.04
5.6.90.0030.06020.92
5.6.80.0100.07320.41
5.6.70.0030.08020.44
5.6.60.0070.07320.36
5.6.50.0130.06020.44
5.6.40.0100.06720.30
5.6.30.0030.03720.30
5.6.20.0030.04720.43
5.6.10.0100.06720.39
5.6.00.0100.06320.42
5.5.380.0100.04020.35
5.5.370.0070.03720.54
5.5.360.0030.04720.52
5.5.350.0070.03720.38
5.5.340.0000.04720.77
5.5.330.0030.04020.88
5.5.320.0030.04020.73
5.5.310.0070.08320.88
5.5.300.0030.04720.88
5.5.290.0030.06720.88
5.5.280.0030.06020.89
5.5.270.0070.07320.86
5.5.260.0130.07320.90
5.5.250.0070.07020.57
5.5.240.0100.08020.30
5.5.230.0100.07020.24
5.5.220.0070.07720.09
5.5.210.0070.07020.14
5.5.200.0000.07320.18
5.5.190.0000.08020.07
5.5.180.0130.03320.13
5.5.160.0200.06319.98
5.5.150.0070.07720.25
5.5.140.0070.08320.14
5.5.130.0070.04320.10
5.5.120.0030.04720.16
5.5.110.0030.08020.25
5.5.100.0100.05320.07
5.5.90.0000.05720.05
5.5.80.0030.08020.05
5.5.70.0130.07320.07
5.5.60.0130.04020.14
5.5.50.0130.04320.13
5.5.40.0170.06720.08
5.5.30.0100.04019.92
5.5.20.0130.06319.91
5.5.10.0070.05720.07
5.5.00.0070.06719.96
5.4.450.0070.04319.47
5.4.440.0070.04719.42
5.4.430.0170.06719.27
5.4.420.0030.06019.13
5.4.410.0030.03719.28
5.4.400.0070.06718.80
5.4.390.0030.05319.07
5.4.380.0070.03019.05
5.4.370.0030.07719.05
5.4.360.0130.07019.12
5.4.350.0200.06019.03
5.4.340.0130.07018.80
5.4.320.0100.06319.23
5.4.310.0070.08019.16
5.4.300.0170.03319.23
5.4.290.0070.06718.97
5.4.280.0030.05719.14
5.4.270.0030.04018.90
5.4.260.0070.04318.97
5.4.250.0100.07018.89
5.4.240.0030.08019.11
5.4.230.0030.07019.02
5.4.220.0100.06018.94
5.4.210.0130.03019.01
5.4.200.0030.05019.09
5.4.190.0100.06319.13
5.4.180.0030.06019.22
5.4.170.0100.04319.05
5.4.160.0130.03019.12
5.4.150.0070.07719.12
5.4.140.0130.06016.06
5.4.130.0070.07316.34
5.4.120.0030.05716.36
5.4.110.0030.03716.42
5.4.100.0130.03716.21
5.4.90.0100.05316.40
5.4.80.0030.07716.31
5.4.70.0000.06016.42
5.4.60.0030.04716.20
5.4.50.0030.04316.39
5.4.40.0070.06716.39
5.4.30.0170.03316.41
5.4.20.0030.07316.20
5.4.10.0070.07316.41
5.4.00.0100.06715.72
5.3.290.0030.04714.60
5.3.280.0070.03714.54
5.3.270.0070.07314.57
5.3.260.0070.05014.44
5.3.250.0000.06714.55
5.3.240.0100.05714.59
5.3.230.0030.04014.41
5.3.220.0000.04714.55
5.3.210.0000.04314.38
5.3.200.0130.05714.38
5.3.190.0000.06314.52
5.3.180.0100.04714.54
5.3.170.0030.07014.54
5.3.160.0100.08714.52
5.3.150.0030.08014.54
5.3.140.0130.06714.51
5.3.130.0030.08014.48
5.3.120.0130.05014.45
5.3.110.0030.08314.54
5.3.100.0070.04013.89
5.3.90.0070.04313.84
5.3.80.0100.06713.99
5.3.70.0030.05314.02
5.3.60.0030.07313.96
5.3.50.0000.08013.80
5.3.40.0070.05313.93
5.3.30.0100.04713.91
5.3.20.0100.05713.64
5.3.10.0070.05013.64
5.3.00.0000.04313.40
5.2.170.0000.06310.97
5.2.160.0000.06311.13
5.2.150.0030.04311.14
5.2.140.0100.04011.18
5.2.130.0070.06011.14
5.2.120.0000.05310.89
5.2.110.0030.05010.92
5.2.100.0030.05711.12
5.2.90.0100.04711.09
5.2.80.0070.03711.09
5.2.70.0070.04711.12
5.2.60.0030.07011.11
5.2.50.0070.05710.86
5.2.40.0100.05010.78
5.2.30.0030.03310.92
5.2.20.0070.05010.75
5.2.10.0100.05710.79
5.2.00.0100.06010.74
5.1.60.0070.0509.83
5.1.50.0030.03710.00
5.1.40.0030.02710.02
5.1.30.0170.02310.23
5.1.20.0030.04710.26
5.1.10.0100.05010.11
5.1.00.0100.03710.06
5.0.50.0070.0438.57
5.0.40.0030.0208.51
5.0.30.0030.0508.51
5.0.20.0000.0338.51
5.0.10.0030.0278.51
5.0.00.0070.0278.51
4.4.90.0070.0338.51
4.4.80.0070.0308.51
4.4.70.0030.0178.51
4.4.60.0000.0238.51
4.4.50.0030.0338.51
4.4.40.0100.0508.51
4.4.30.0000.0238.51
4.4.20.0000.0278.51
4.4.10.0000.0208.51
4.4.00.0000.0278.51
4.3.110.0070.0138.51
4.3.100.0000.0308.51
4.3.90.0070.0208.51
4.3.80.0070.0478.51
4.3.70.0030.0338.51
4.3.60.0000.0338.51
4.3.50.0130.0238.51
4.3.40.0000.0378.51
4.3.30.0100.0238.51
4.3.20.0000.0378.51
4.3.10.0070.0138.51
4.3.00.0000.0208.51