3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo json_encode(json_decode('{}', true));

Here you find the average performance (time & memory) of each version. A greyed 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.0alpha10.0140.00511.58
7.2.70.0240.01014.75
7.2.60.0930.00614.78
7.2.50.0930.00614.84
7.2.40.0600.01015.94
7.2.30.1450.01116.00
7.2.20.1380.00815.96
7.2.10.1470.01115.97
7.2.00.1660.01015.94
7.1.170.0820.00613.54
7.1.160.1800.00815.53
7.1.150.1860.00915.64
7.1.140.1880.00915.68
7.1.130.1250.01315.61
7.1.120.1360.00915.55
7.1.110.1380.00915.17
7.1.100.1390.00915.15
7.1.90.1460.01015.26
7.1.80.1700.00815.36
7.1.70.1540.00714.69
7.1.60.0970.01732.67
7.1.50.1020.01132.43
7.1.40.1430.01332.22
7.1.30.1470.01032.16
7.1.20.1270.01332.36
7.1.10.1090.00814.23
7.1.00.0860.01014.26
7.0.300.0780.01013.21
7.0.290.1600.01215.37
7.0.270.1860.00815.39
7.0.260.1770.01115.34
7.0.250.1670.01114.90
7.0.240.1600.00915.07
7.0.230.1640.01014.84
7.0.220.1890.00914.75
7.0.210.0880.00814.23
7.0.200.1390.01114.30
7.0.190.1300.00614.25
7.0.180.1280.01013.85
7.0.170.1290.00913.95
7.0.160.1430.00814.03
7.0.150.1110.00913.93
7.0.140.1860.01014.03
7.0.130.1090.00914.26
7.0.120.1140.01114.22
7.0.110.0990.00913.90
7.0.100.1220.00914.03
7.0.90.1150.00813.96
7.0.80.1060.00913.99
7.0.70.1000.01314.02
7.0.60.0860.01113.92
7.0.50.1060.00714.11
7.0.40.1070.00914.17
7.0.30.1090.00714.22
7.0.20.0900.00914.12
7.0.10.0760.01114.27
7.0.00.0890.01214.10
hhvm-3.22.00.1140.22590.14
hhvm-3.21.30.1300.22689.48
hhvm-3.21.00.1270.20689.62
hhvm-3.20.20.1290.22490.04
hhvm-3.19.20.1390.23589.20
hhvm-3.18.50.1200.22887.87
hhvm-3.18.40.1360.23588.08
hhvm-3.17.30.1080.19986.78
hhvm-3.15.40.1070.20284.76
hhvm-3.13.20.1250.22696.18
hhvm-3.12.140.1220.20994.41
hhvm-3.11.10.1240.21787.06
hhvm-3.10.10.1170.21884.14
5.6.300.0150.04418.58
5.6.290.0170.04618.48
5.6.280.0180.05018.63
5.6.270.0160.04118.61
5.6.260.0190.03818.64
5.6.250.0170.04518.67
5.6.240.0210.04718.64
5.6.230.0150.04418.61
5.6.220.0140.04718.55
5.6.210.0140.04418.52
5.6.200.0160.04118.61
5.6.190.0200.04918.60
5.6.180.0160.04118.61
5.6.170.0170.04018.54
5.6.160.0150.04018.57
5.6.150.0170.04318.45
5.6.140.0220.05218.62
5.6.130.0160.04918.59
5.6.120.0180.05618.57
5.6.110.0160.04918.49
5.6.100.0160.05218.48
5.6.90.0160.04218.58
5.6.80.0180.03918.11
5.6.70.0190.04318.08
5.6.60.0170.04218.06
5.6.50.0170.03718.10
5.6.40.0110.04718.24
5.6.30.0140.04318.10
5.6.20.0150.04318.20
5.6.10.0130.04118.20
5.6.00.0140.04418.03
5.5.380.0160.03715.24
5.5.370.0130.04115.17
5.5.360.0090.04515.15
5.5.350.0120.03815.28
5.5.340.0130.04515.56
5.5.330.0180.04515.65
5.5.320.0190.03715.43
5.5.310.0140.04315.58
5.5.300.0170.05515.54
5.5.290.0180.05415.56
5.5.280.0130.04915.57
5.5.270.0150.05215.63
5.5.260.0170.05415.48
5.5.250.0130.04415.35
5.5.240.0130.04015.13
5.5.230.0130.05015.14
5.5.220.0150.04415.03
5.5.210.0170.03515.14
5.5.200.0100.04115.04
5.5.190.0150.04314.89
5.5.180.0180.03715.04
5.5.160.0120.03915.16
5.5.150.0150.03515.03
5.5.140.0150.04215.12
5.5.130.0190.03915.21
5.5.120.0160.04415.14
5.5.110.0170.04115.09
5.5.100.0140.03915.01
5.5.90.0120.04115.14
5.5.80.0160.03415.09
5.5.70.0130.03815.08
5.5.60.0120.03815.01
5.5.50.0190.04115.01
5.5.40.0100.04015.00
5.5.30.0150.04314.95
5.5.20.0150.04115.14
5.5.10.0150.05114.96
5.5.00.0130.03914.96
5.4.450.0170.05616.53
5.4.440.0160.05016.54
5.4.430.0140.04316.44
5.4.420.0150.03916.48
5.4.410.0160.03616.40
5.4.400.0120.03816.27
5.4.390.0100.04316.24
5.4.380.0090.04216.15
5.4.370.0150.04616.32
5.4.360.0190.04116.25
5.4.350.0120.03916.30
5.4.340.0150.04116.11
5.4.320.0130.04316.24
5.4.310.0150.03516.27
5.4.300.0130.04416.14
5.4.290.0100.04116.22
5.4.280.0170.04216.20
5.4.270.0170.03916.17
5.4.260.0160.03416.08
5.4.250.0130.03716.23
5.4.240.0110.03916.31
5.4.230.0150.03716.25
5.4.220.0130.04116.27
5.4.210.0140.03616.20
5.4.200.0150.03916.40
5.4.190.0130.03816.24
5.4.180.0160.03216.30
5.4.170.0120.04316.28
5.4.160.0130.03716.18
5.4.150.0100.04016.23
5.4.140.0110.03814.63
5.4.130.0110.03414.62
5.4.120.0090.03714.59
5.4.110.0120.03514.66
5.4.100.0140.03314.58
5.4.90.0120.03514.63
5.4.80.0130.03414.72
5.4.70.0130.03514.60
5.4.60.0150.03214.57
5.4.50.0130.03814.46
5.4.40.0160.03214.68
5.4.30.0140.03214.58
5.4.20.0100.04014.64
5.4.10.0160.03314.49
5.4.00.0120.03514.26
5.3.290.0160.04213.28
5.3.280.0130.04713.04
5.3.270.0110.04313.26
5.3.260.0120.03513.21
5.3.250.0130.03413.22
5.3.240.0130.03513.17
5.3.230.0120.03513.16
5.3.220.0090.03713.18
5.3.210.0070.04213.16
5.3.200.0140.03313.17
5.3.190.0130.03513.23
5.3.180.0100.03713.28
5.3.170.0180.03613.24
5.3.160.0130.03713.04
5.3.150.0140.03413.20
5.3.140.0100.03713.19
5.3.130.0150.03813.18
5.3.120.0130.03613.18
5.3.110.0110.04013.20
5.3.100.0130.03612.78
5.3.90.0140.04012.86
5.3.80.0130.04112.85
5.3.70.0110.03612.77
5.3.60.0100.03812.76
5.3.50.0130.03712.74
5.3.40.0120.03512.70
5.3.30.0130.03612.69
5.3.20.0130.03412.61
5.3.10.0100.03412.45
5.3.00.0150.03412.47
5.2.170.0090.03010.56
5.2.160.0100.03010.69
5.2.150.0090.03510.67
5.2.140.0120.02810.62
5.2.130.0120.02610.53
5.2.120.0120.02510.50
5.2.110.0110.02610.47
5.2.100.0090.02810.49
5.2.90.0110.03110.53
5.2.80.0120.03510.55
5.2.70.0100.03210.50
5.2.60.0110.02810.49
5.2.50.0090.02810.36
5.2.40.0100.02710.46
5.2.30.0110.02810.42
5.2.20.0120.03210.33
5.2.10.0080.02910.22
5.2.00.0090.02910.20
5.1.60.0110.0279.68
5.1.50.0050.0279.72
5.1.40.0110.0219.68
5.1.30.0100.0259.98
5.1.20.0090.0269.95
5.1.10.0100.0239.75
5.1.00.0100.0239.76
5.0.50.0060.0208.79
5.0.40.0050.0228.67
5.0.30.0050.0328.52
5.0.20.0040.0228.57
5.0.10.0070.0228.52
5.0.00.0090.0308.60
4.4.90.0050.0168.40
4.4.80.0050.0158.40
4.4.70.0070.0168.40
4.4.60.0060.0158.40
4.4.50.0060.0148.40
4.4.40.0050.0248.40
4.4.30.0080.0138.40
4.4.20.0070.0148.40
4.4.10.0040.0178.40
4.4.00.0060.0228.40
4.3.110.0080.0168.40
4.3.100.0050.0158.40
4.3.90.0050.0178.40
4.3.80.0060.0218.40
4.3.70.0070.0148.40
4.3.60.0060.0148.40
4.3.50.0060.0168.40
4.3.40.0060.0218.40
4.3.30.0030.0178.40
4.3.20.0040.0158.40
4.3.10.0040.0168.40
4.3.00.0050.0148.40