3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting(0); class a { function a() { echo "CONSTRUCTOR CALLED\r\n"; } static function b($var) { return $var . 'x'; } } a::b();

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.0000.01316.57
7.3.00.0070.00716.39
7.2.130.0030.01016.65
7.2.120.0030.00716.84
7.2.110.0080.00416.84
7.2.100.0040.00916.88
7.2.90.0000.01416.56
7.2.80.0000.01716.67
7.2.70.0070.01016.68
7.2.60.0040.00716.87
7.2.50.0070.00716.94
7.2.40.0110.00416.88
7.2.30.0040.00816.80
7.2.20.0000.01616.81
7.2.10.0030.01016.82
7.2.00.0030.01118.14
7.1.250.0040.00815.74
7.1.200.0060.00915.68
7.1.100.0040.00717.79
7.1.70.0070.00017.06
7.1.60.0140.01119.40
7.1.50.0110.01116.87
7.1.00.0070.04022.39
7.0.200.0280.00014.41
7.0.140.0000.07321.97
7.0.120.0000.07722.09
7.0.60.0100.07720.05
7.0.50.0000.04717.91
7.0.40.0130.08020.10
7.0.30.0570.06020.27
7.0.20.0130.04320.10
7.0.10.0130.07320.16
7.0.00.0100.08320.07
5.6.280.0000.07721.15
5.6.210.0100.08320.51
5.6.200.0000.04318.22
5.6.190.0170.05720.63
5.6.180.1430.03720.67
5.6.170.0270.08020.50
5.6.160.0070.08720.61
5.6.150.0070.05318.12
5.6.140.0030.04718.19
5.6.130.0100.05718.29
5.6.120.0030.05721.14
5.6.110.0130.07721.00
5.6.100.0130.06320.89
5.6.90.0030.04320.97
5.6.80.0100.06720.29
5.6.70.4430.04020.53
5.5.350.0130.06720.41
5.5.340.0030.08317.99
5.5.330.0070.03720.40
5.5.320.3170.03720.30
5.5.310.0300.07020.29
5.5.300.0070.08318.04
5.5.290.0070.04017.96
5.5.280.0030.04320.76
5.5.270.0030.04320.88
5.5.260.0130.08020.65
5.5.250.0030.08320.47
5.5.240.0230.04320.23
5.4.450.0300.07719.64
5.4.440.0330.06719.47
5.4.430.0230.07719.49
5.4.420.0400.04319.54
5.4.410.0230.04019.07
5.4.400.0200.05019.15
5.4.390.0270.05018.99
5.4.380.0230.08018.86
5.4.370.0270.03319.16
5.4.360.0270.04719.16
5.4.350.0370.03019.24
5.4.340.0330.06019.31
5.4.320.0270.04319.32
5.4.310.0230.03719.13
5.4.300.0330.04019.13
5.4.290.0270.03719.19
5.4.280.0300.07319.31
5.4.270.0230.03718.98
5.4.260.0270.05318.95
5.4.250.0330.07019.31
5.4.240.0270.07718.98
5.4.230.0300.03319.14
5.4.220.0270.05319.08
5.4.210.0170.05019.05
5.4.200.0200.04019.31
5.4.190.0230.03719.05
5.4.180.0270.03019.07
5.4.170.0200.03719.19
5.4.160.0270.03019.17
5.4.150.0230.03718.83
5.4.140.0230.06716.39
5.4.130.0330.05716.51
5.4.120.0330.06016.41
5.4.110.0330.05316.37
5.4.100.0300.05016.45
5.4.90.0230.04716.18
5.4.80.0270.03016.54
5.4.70.0200.03716.49
5.4.60.0270.03716.32
5.4.50.0270.07316.55
5.4.40.0230.04316.44
5.4.30.0270.05016.43
5.4.20.0270.04316.48
5.4.10.0330.06316.53
5.4.00.0370.06015.80
5.3.290.0230.03714.88
5.3.280.0270.06014.57
5.3.270.0230.04714.58
5.3.260.0300.06314.50
5.3.250.0230.07014.76
5.3.240.0200.07314.61
5.3.230.0300.07714.71
5.3.220.0300.03714.59
5.3.210.0230.07314.55
5.3.200.0300.05314.72
5.3.190.0230.05014.64
5.3.180.0300.03014.55
5.3.170.0230.04014.55
5.3.160.0330.03714.64
5.3.150.0330.06014.64
5.3.140.0200.05714.64
5.3.130.0400.04014.67
5.3.120.0330.06714.45
5.3.110.0270.03714.66
5.3.100.0370.03714.20
5.3.90.0300.07014.18
5.3.80.0370.05314.07
5.3.70.0230.04014.11
5.3.60.0230.05013.92
5.3.50.0200.04314.11
5.3.40.0230.05013.86
5.3.30.0270.03713.91
5.3.20.0300.04013.71
5.3.10.0200.03713.79
5.3.00.0200.04713.55
5.2.170.0270.05712.75
5.2.160.0230.04712.75
5.2.150.0200.03312.75
5.2.140.0230.03712.75
5.2.130.0230.03012.75
5.2.120.0230.05712.75
5.2.110.0230.03012.75
5.2.100.0200.06012.75
5.2.90.0270.03712.75
5.2.80.0230.04312.75
5.2.70.0230.06012.75
5.2.60.0230.04712.75
5.2.50.0300.04712.75
5.2.40.0200.03712.75
5.2.30.0170.05012.75
5.2.20.0130.03012.75
5.2.10.0230.04712.75
5.2.00.0200.03712.75
5.1.60.0230.05012.75
5.1.50.0170.05312.75
5.1.40.0270.04312.75
5.1.30.0230.05012.75
5.1.20.0230.05312.75
5.1.10.0300.04312.75
5.1.00.0170.05012.75
5.0.50.0170.04012.75
5.0.40.0100.04012.75
5.0.30.0130.05312.75
5.0.20.0130.03312.75
5.0.10.0100.04012.75
5.0.00.0130.03312.75
4.4.90.0100.03712.75
4.4.80.0100.02712.75
4.4.70.0100.03312.75
4.4.60.0100.03012.75
4.4.50.0100.03312.75
4.4.40.0130.05012.75
4.4.30.0070.02712.75
4.4.20.0130.02312.75
4.4.10.0100.01712.75
4.4.00.0170.04712.75
4.3.110.0100.03012.75
4.3.100.0130.03012.75
4.3.90.0130.02012.75
4.3.80.0130.04312.75
4.3.70.0130.02712.75
4.3.60.0130.03012.75
4.3.50.0170.02312.75
4.3.40.0100.05012.75
4.3.30.0100.03012.75
4.3.20.0230.02012.75
4.3.10.0170.01312.75
4.3.00.0030.03312.75