3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try { throw new TestException(); } catch (TestException $e) { echo "Caught TestException ('{$e->getMessage()}')\n{$e}\n"; } finally { echo 'a'; }

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.0090.00316.67
7.3.00.0070.00416.44
7.2.130.0090.00416.77
7.2.120.0040.00816.84
7.2.110.0050.00716.83
7.2.100.0060.00916.66
7.2.90.0040.00916.81
7.2.80.0060.00816.83
7.2.70.0060.00816.97
7.2.60.0100.00616.98
7.2.50.0050.00716.85
7.2.40.0040.00616.77
7.2.30.0070.00616.95
7.2.20.0040.00916.73
7.2.10.0050.00716.90
7.2.00.0040.00817.48
7.1.250.0030.00815.69
7.1.240.0080.00615.39
7.1.230.0100.00315.75
7.1.220.0090.00615.31
7.1.210.0030.00915.45
7.1.200.0070.00615.51
7.1.190.0070.00715.72
7.1.180.0000.01215.66
7.1.170.0040.00815.49
7.1.160.0050.01115.67
7.1.150.0070.00715.64
7.1.140.0040.01115.49
7.1.130.0040.01215.68
7.1.120.0060.00315.77
7.1.110.0030.00615.73
7.1.100.0050.00816.91
7.1.90.0030.01015.46
7.1.80.0080.00815.50
7.1.70.0020.00916.01
7.1.60.0100.00817.35
7.1.50.0030.01216.19
7.1.40.0100.00315.07
7.1.30.0070.01115.63
7.1.20.0000.01015.66
7.1.10.0040.00415.61
7.1.00.0100.03618.95
7.0.330.0030.00915.11
7.0.320.0060.00315.45
7.0.310.0100.00315.02
7.0.300.0060.00915.28
7.0.290.0070.00715.16
7.0.280.0030.00715.23
7.0.270.0030.00915.07
7.0.260.0040.00415.34
7.0.250.0000.00915.04
7.0.240.0060.00615.09
7.0.230.0030.01015.30
7.0.220.0000.01215.18
7.0.210.0090.00315.42
7.0.200.0210.00814.88
7.0.190.0100.00715.41
7.0.180.0040.00915.10
7.0.170.0060.00815.19
7.0.160.0090.00615.45
7.0.150.0040.00815.30
7.0.140.0040.00414.95
7.0.130.0030.00715.20
7.0.120.0000.00915.48
7.0.110.0070.01015.25
7.0.100.0070.00715.29
7.0.90.0000.00915.29
7.0.80.0060.00615.18
7.0.70.0040.01115.33
7.0.60.0080.02517.50
7.0.50.0040.02316.52
7.0.40.0070.03416.89
7.0.30.0140.03516.56
7.0.20.0130.04516.73
7.0.10.0090.04116.72
7.0.00.0100.04516.79
5.6.380.0030.01314.08
5.6.370.0070.00714.04
5.6.360.0030.00914.09
5.6.350.0060.00314.09
5.6.340.0000.01314.08
5.6.330.0110.00413.70
5.6.320.0000.01514.13
5.6.310.0040.00713.99
5.6.300.0000.00813.90
5.6.290.0040.01114.06
5.6.280.0020.02217.40
5.6.270.0030.01013.91
5.6.260.0030.00714.56
5.6.250.0110.00414.38
5.6.240.0070.00714.10
5.6.230.0090.00313.96
5.6.220.0070.00614.09
5.6.210.0060.03517.20
5.6.200.0050.04016.32
5.6.190.0060.04317.36
5.6.180.0120.03417.46
5.6.170.0210.04017.34
5.6.160.0070.04317.42
5.6.150.0080.03716.10
5.6.140.0070.04216.05
5.6.130.0030.04416.08
5.6.120.0040.02317.57
5.6.110.0080.04517.63
5.6.100.0070.04217.63
5.6.90.0100.04117.66
5.6.80.0070.03017.28
5.6.70.0040.01113.97
5.6.60.0030.00913.92
5.6.50.0030.01014.25
5.6.40.0060.00613.91
5.6.30.0030.01014.00
5.6.20.0060.00913.99
5.6.10.0040.01113.68
5.6.00.0040.00413.97
5.5.380.0000.00611.18
5.5.370.0000.00911.18
5.5.360.0030.00611.18
5.5.350.2090.02615.80
5.5.340.0030.02714.57
5.5.330.0080.03515.87
5.5.320.0250.02415.65
5.5.310.0160.02815.73
5.5.300.0100.02314.60
5.5.290.0050.02214.57
5.5.280.0080.04115.91
5.5.270.0060.03816.00
5.5.260.0040.04715.97
5.5.250.0050.03915.88
5.5.240.0190.03115.72
5.5.230.0100.00011.18
5.5.220.0050.00311.18
5.5.210.0060.00611.18
5.5.200.0030.01011.18
5.5.190.0030.00611.18
5.5.180.0090.00011.18
5.5.170.0050.00211.18
5.5.160.0000.00811.18
5.5.150.0000.01111.18
5.5.140.0000.00911.18
5.5.130.0050.00211.18
5.5.120.0030.00311.18
5.5.110.0030.00311.18
5.5.100.0030.00311.18
5.5.90.0030.00611.18
5.5.80.0050.00511.18
5.5.70.0030.00611.18
5.5.60.0030.00311.18
5.5.50.0050.00011.18
5.5.40.0030.00711.18
5.5.30.0030.00911.18
5.5.20.0000.00711.18
5.5.10.0030.00611.18
5.5.00.0000.00811.18
5.4.450.0130.05719.46
5.4.440.0170.05319.57
5.4.430.0130.06019.61
5.4.420.0270.05319.59
5.4.410.0230.04719.32
5.4.400.0230.05018.97
5.4.390.0100.06018.98
5.4.380.0130.05719.25
5.4.370.0170.05318.94
5.4.360.0170.05319.25
5.4.350.0100.05719.29
5.4.340.0200.05019.13
5.4.320.0200.05019.27
5.4.310.0130.05319.25
5.4.300.0230.04719.13
5.4.290.0200.05319.13
5.4.280.0100.06319.24
5.4.270.0170.05019.27
5.4.260.0100.05719.11
5.4.250.0100.06019.26
5.4.240.0270.04318.94
5.4.230.0170.05019.24
5.4.220.0070.06019.26
5.4.210.0100.05719.35
5.4.200.0070.06019.26
5.4.190.0170.05018.97
5.4.180.0130.05719.13
5.4.170.0230.04319.10
5.4.160.0500.03719.14
5.4.150.0070.06318.94
5.4.140.0270.04716.50
5.4.130.0130.05016.43
5.4.120.0200.04316.48
5.4.110.0130.05316.58
5.4.100.0200.04316.24
5.4.90.0130.05016.43
5.3.290.0100.05714.45
5.3.280.0200.05314.42
5.3.270.0100.06014.38
5.3.260.0200.05014.59
5.3.250.0270.04014.44
5.3.240.0200.04714.69
5.3.230.0130.05314.41
5.3.220.0070.06014.39
5.3.210.0170.05714.39
5.3.200.0130.05314.54
5.3.190.0170.05014.54