3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php print_r(array('a'=>'b','b'=>'b','c'=>'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.2.00.0150.00719.29
7.1.100.0030.00717.61
7.1.70.0070.00416.97
7.1.60.0100.01319.40
7.1.50.0060.00616.74
7.1.00.0030.06322.48
7.0.200.0000.00716.46
7.0.140.0030.07321.96
7.0.60.0100.04020.00
7.0.50.0030.08317.80
7.0.40.0130.05320.29
7.0.30.0170.06020.30
7.0.20.0200.04020.17
7.0.10.0030.06320.01
7.0.00.0100.04020.01
5.6.280.0030.07021.14
5.6.210.0100.07720.74
5.6.200.0100.04718.09
5.6.190.0100.06720.55
5.6.180.0270.04020.27
5.6.170.0270.06320.49
5.6.160.0070.06720.39
5.6.150.0100.08018.10
5.6.140.0070.08018.21
5.6.130.0170.07018.16
5.6.120.0000.05720.97
5.6.110.0170.07320.95
5.6.100.0170.07320.96
5.6.90.0130.07721.13
5.6.80.0000.04320.50
5.6.70.0300.07320.42
5.5.350.3200.03720.29
5.5.340.0100.03717.91
5.5.330.0000.04720.02
5.5.320.0200.06020.40
5.5.310.0270.05020.26
5.5.300.0000.06317.96
5.5.290.0070.07718.02
5.5.280.0130.08020.87
5.5.270.0200.03720.73
5.5.260.0030.08720.95
5.5.250.0030.04020.54
5.5.240.0100.07720.14
5.4.450.0000.08319.29
5.4.440.0100.07719.50
5.4.430.0000.05319.11
5.4.420.0100.04319.46
5.4.410.0130.06719.30
5.4.400.0030.07318.92
5.4.390.0130.04718.91
5.4.380.0100.07719.17
5.4.370.0030.04019.18
5.4.360.0230.03319.18
5.4.350.0130.07019.14
5.4.340.0100.04319.15
5.4.320.0100.05318.79
5.4.310.0100.07319.07
5.4.300.0130.06019.19
5.4.290.0070.03718.80
5.4.280.0070.06018.91
5.4.270.0070.03718.91
5.4.260.0030.07718.91
5.4.250.0070.07719.17
5.4.240.0070.07319.14
5.4.230.0100.04319.13
5.4.220.0030.04018.91
5.4.210.0030.07719.13
5.4.200.0070.03719.07
5.4.190.0170.04018.91
5.4.180.0070.07318.90
5.4.170.0030.04019.13
5.4.160.0100.06019.05
5.4.150.0030.04318.78
5.4.140.0170.04716.35
5.4.130.0200.05716.26
5.4.120.0000.05716.21
5.4.110.0130.06716.23
5.4.100.0070.04016.39
5.4.90.0070.06016.27
5.4.80.0030.07016.25
5.4.70.0000.06716.30
5.4.60.0030.04016.38
5.4.50.0030.07316.21
5.4.40.0030.05016.34
5.4.30.0030.06016.38
5.4.20.0030.03716.34
5.4.10.0170.03016.20
5.4.00.0070.03015.78
5.3.290.0030.05014.58
5.3.280.0030.05714.49
5.3.270.0030.03714.57
5.3.260.0070.03714.50
5.3.250.0000.04714.50
5.3.240.0000.06714.52
5.3.230.0130.03714.47
5.3.220.0000.05714.44
5.3.210.0070.06314.50
5.3.200.0100.06314.50
5.3.190.0070.04014.65
5.3.180.0100.07014.57
5.3.170.0100.05014.54
5.3.160.0070.03314.48
5.3.150.0030.04014.52
5.3.140.0030.07314.43
5.3.130.0030.05014.49
5.3.120.0070.04014.42
5.3.110.0070.03314.63
5.3.100.0000.04013.96
5.3.90.0070.03013.94
5.3.80.0000.04013.94
5.3.70.0030.03713.85
5.3.60.0070.04013.98
5.3.50.0000.03713.77
5.3.40.0000.03713.90
5.3.30.0030.03313.92
5.3.20.0030.03313.65
5.3.10.0000.04013.44
5.3.00.0000.03713.42
5.2.170.0070.02311.08
5.2.160.0030.02711.04
5.2.150.0070.02311.24
5.2.140.0000.03011.13
5.2.130.0070.02311.00
5.2.120.0000.03010.99
5.2.110.0000.03010.93
5.2.100.0000.03011.09
5.2.90.0030.02711.08
5.2.80.0000.03011.08
5.2.70.0030.02711.06
5.2.60.0070.02310.95
5.2.50.0070.02310.91
5.2.40.0000.03010.88
5.2.30.0000.03010.94
5.2.20.0070.02310.90
5.2.10.0030.02710.84
5.2.00.0100.02010.66
5.1.60.0070.02010.00
5.1.50.0000.0279.95
5.1.40.0000.0279.96
5.1.30.0070.02310.41
5.1.20.0000.02710.34
5.1.10.0030.02310.12
5.1.00.0030.02710.06
5.0.50.0030.0208.38
5.0.40.0000.0208.31
5.0.30.0000.0308.12
5.0.20.0000.0208.16
5.0.10.0000.0208.13
5.0.00.0000.0338.18
4.4.90.0000.0178.11
4.4.80.0030.0138.11
4.4.70.0030.0138.11
4.4.60.0030.0138.11
4.4.50.0000.0178.11
4.4.40.0000.0238.11
4.4.30.0030.0138.11
4.4.20.0000.0178.11
4.4.10.0000.0178.11
4.4.00.0000.0278.11
4.3.110.0030.0138.11
4.3.100.0000.0178.11
4.3.90.0000.0138.11
4.3.80.0000.0238.11
4.3.70.0000.0138.11
4.3.60.0000.0138.11
4.3.50.0000.0138.11
4.3.40.0000.0238.11
4.3.30.0000.0138.11
4.3.20.0070.0138.11
4.3.10.0000.0178.11
4.3.00.0000.0138.11