3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo implements JsonSerializable { public function jsonSerialize() { return json_encode([1], JSON_PRETTY_PRINT); } } echo json_encode([new Foo]), "\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).
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.70.0160.01615.17
7.2.60.3550.00914.87
7.2.50.0150.01114.79
7.2.40.0580.01116.04
7.2.30.3420.00916.05
7.2.20.2850.01015.97
7.2.10.3110.01116.07
7.2.00.2960.01016.05
7.1.200.0030.01015.68
7.1.170.0350.00813.64
7.1.160.0400.01015.68
7.1.150.2930.01115.67
7.1.140.2940.01015.66
7.1.130.3060.01015.68
7.1.120.2600.00815.46
7.1.110.2670.01015.09
7.1.100.2300.00815.14
7.1.90.2450.01015.09
7.1.80.2450.01015.21
7.1.70.1540.01314.66
7.1.60.1740.01232.69
7.1.50.1310.01132.35
7.1.40.1240.01332.16
7.1.30.1260.01532.21
7.1.20.1190.01132.32
7.1.10.1010.00814.29
7.1.00.1000.01214.33
7.0.300.0140.00913.26
7.0.290.3330.01015.31
7.0.270.3370.01015.43
7.0.260.2160.01115.41
7.0.250.2780.01114.88
7.0.240.2350.00915.06
7.0.230.2420.00815.12
7.0.220.2180.00815.16
7.0.210.1560.00714.18
7.0.200.1610.00714.36
7.0.190.1110.01114.21
7.0.180.1780.00613.96
7.0.170.1190.00713.83
7.0.160.1310.00913.89
7.0.150.1060.01113.87
7.0.140.1030.01114.15
7.0.130.0910.01114.25
7.0.120.1030.01014.23
7.0.110.0900.01013.99
7.0.100.0910.01314.14
7.0.90.0990.00914.04
7.0.80.1150.01214.07
7.0.70.0920.01214.02
7.0.60.0720.01014.02
7.0.50.0890.00914.14
7.0.40.0760.01114.24
7.0.30.0870.01014.25
7.0.20.0670.00714.19
7.0.10.0630.00614.11
7.0.00.0680.01114.12
hhvm-3.22.00.1090.22790.37
hhvm-3.21.30.0870.21689.82
hhvm-3.21.00.1320.22890.03
hhvm-3.20.20.1310.23890.17
hhvm-3.19.20.1330.25689.58
hhvm-3.18.50.0950.20088.59
hhvm-3.18.40.1330.24688.19
hhvm-3.17.30.1300.21187.26
hhvm-3.15.40.1100.18584.99
hhvm-3.13.20.1260.21196.38
hhvm-3.12.140.1230.21595.24
hhvm-3.11.10.1150.22387.42
hhvm-3.10.10.1010.20184.52
5.6.300.0140.04218.54
5.6.290.0160.03918.59
5.6.280.0130.04418.57
5.6.270.0180.05018.78
5.6.260.0170.04318.67
5.6.250.0170.04918.49
5.6.240.0190.05318.59
5.6.230.0160.05118.40
5.6.220.0220.04418.62
5.6.210.0120.04618.62
5.6.200.0140.04418.69
5.6.190.0180.04418.65
5.6.180.0140.04318.47
5.6.170.0180.04218.58
5.6.160.0150.04418.60
5.6.150.0170.04918.54
5.6.140.0170.04318.58
5.6.130.0160.04018.62
5.6.120.0130.04818.63
5.6.110.0130.04918.63
5.6.100.0190.04418.54
5.6.90.0160.04718.73
5.6.80.0160.03618.14
5.6.70.0160.05018.23
5.6.60.0120.04518.18
5.6.50.0140.03918.17
5.6.40.0150.04718.10
5.6.30.0130.05318.10
5.6.20.0150.04518.16
5.6.10.0160.04518.15
5.6.00.0140.04918.14
5.5.380.0110.05215.45
5.5.370.0140.04715.27
5.5.360.0170.03815.43
5.5.350.0140.03915.44
5.5.340.0170.04315.78
5.5.330.0170.04215.67
5.5.320.0120.04115.73
5.5.310.0180.03915.81
5.5.300.0130.04215.71
5.5.290.0160.03815.67
5.5.280.0170.03615.61
5.5.270.0110.05015.59
5.5.260.0150.04515.67
5.5.250.0120.03915.45
5.5.240.0150.03415.08
5.5.230.0090.04415.27
5.5.220.0150.04415.14
5.5.210.0130.03915.32
5.5.200.0170.03515.17
5.5.190.0130.03915.38
5.5.180.0150.04515.08
5.5.160.0120.04415.22
5.5.150.0100.04615.08
5.5.140.0150.04115.30
5.5.130.0140.03615.31
5.5.120.0140.03915.07
5.5.110.0140.03715.33
5.5.100.0140.04615.11
5.5.90.0160.03515.08
5.5.80.0140.03715.15
5.5.70.0150.03815.15
5.5.60.0150.04014.98
5.5.50.0200.04115.08
5.5.40.0150.03515.08
5.5.30.0150.04115.18
5.5.20.0150.04515.23
5.5.10.0150.04415.05
5.5.00.0110.04515.12
5.4.450.0140.04516.55
5.4.440.0130.04716.48
5.4.430.0130.04416.58
5.4.420.0120.03916.55
5.4.410.0150.03516.48
5.4.400.0150.04316.30
5.4.390.0160.03716.30
5.4.380.0140.03916.31
5.4.370.0130.04016.34
5.4.360.0160.03816.32
5.4.350.0160.04316.42
5.4.340.0140.03816.27
5.4.320.0130.04216.37
5.4.310.0140.03616.23
5.4.300.0130.03816.26
5.4.290.0130.03816.33
5.4.280.0130.04416.32
5.4.270.0160.03716.22
5.4.260.0130.04316.18
5.4.250.0130.04616.28
5.4.240.0100.04816.25
5.4.230.0180.04116.31
5.4.220.0120.04116.38
5.4.210.0150.03716.27
5.4.200.0110.03916.39
5.4.190.0150.04516.28
5.4.180.0150.04316.31
5.4.170.0140.04316.26
5.4.160.0150.03616.27
5.4.150.0140.04516.30
5.4.140.0190.03314.77
5.4.130.0190.04014.77
5.4.120.0120.03714.75
5.4.110.0160.03914.73
5.4.100.0130.04314.57
5.4.90.0130.03914.69
5.4.80.0100.04014.57
5.4.70.0140.03914.67
5.4.60.0130.04214.81
5.4.50.0110.04514.68
5.4.40.0180.03914.68
5.4.30.0130.04114.77
5.4.20.0130.03714.69
5.4.10.0110.04014.53
5.4.00.0140.04514.26
5.3.290.0140.03713.44
5.3.280.0170.04013.25
5.3.270.0130.04613.28
5.3.260.0140.04313.35
5.3.250.0140.04613.31
5.3.240.0130.03813.19
5.3.230.0140.04913.18
5.3.220.0160.03513.14
5.3.210.0160.04513.13
5.3.200.0130.03913.29
5.3.190.0140.04213.21
5.3.180.0110.04813.34
5.3.170.0150.04413.25
5.3.160.0120.04413.29
5.3.150.0150.03413.20
5.3.140.0120.04213.08
5.3.130.0170.03913.24
5.3.120.0130.04013.13
5.3.110.0140.04413.20
5.3.100.0150.04312.97
5.3.90.0160.04212.95
5.3.80.0160.04512.93
5.3.70.0100.04312.91
5.3.60.0130.03712.80
5.3.50.0110.03612.69
5.3.40.0190.04112.74
5.3.30.0170.04212.80
5.3.20.0120.03612.66
5.3.10.0130.03912.63
5.3.00.0170.04212.41
5.2.170.0140.03110.64
5.2.160.0120.03110.49
5.2.150.0120.03010.62
5.2.140.0090.03610.68
5.2.130.0140.03210.53
5.2.120.0090.03710.61
5.2.110.0090.03010.56
5.2.100.0090.02810.67
5.2.90.0110.03210.65
5.2.80.0120.03610.56
5.2.70.0090.03510.52
5.2.60.0100.03010.32
5.2.50.0110.03110.46
5.2.40.0110.03310.54
5.2.30.0100.02910.32
5.2.20.0090.03010.52
5.2.10.0100.03510.36
5.2.00.0120.03010.19
5.1.60.0100.0319.77
5.1.50.0100.0289.77
5.1.40.0080.0309.79
5.1.30.0130.02810.02
5.1.20.0120.0289.93
5.1.10.0100.0259.82
5.1.00.0100.0319.78
5.0.50.0070.0248.83
5.0.40.0070.0228.63
5.0.30.0050.0328.48
5.0.20.0080.0218.48
5.0.10.0070.0208.59
5.0.00.0070.0298.58
4.4.90.0080.0168.34
4.4.80.0070.0168.34
4.4.70.0070.0158.34
4.4.60.0070.0188.34
4.4.50.0060.0178.34
4.4.40.0070.0258.34
4.4.30.0070.0158.34
4.4.20.0050.0218.34
4.4.10.0090.0148.34
4.4.00.0070.0248.34
4.3.110.0050.0178.34
4.3.100.0060.0198.34
4.3.90.0040.0208.34
4.3.80.0060.0258.34
4.3.70.0070.0158.34
4.3.60.0080.0188.34
4.3.50.0060.0158.34
4.3.40.0070.0268.34
4.3.30.0040.0158.34
4.3.20.0030.0168.34
4.3.10.0040.0178.34
4.3.00.0050.0168.34