3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $tmp = array('a' => 'b', 'b' => 'c'); serialize($tmp);

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.0070.00719.25
7.1.100.0090.00318.21
7.1.70.0060.00616.97
7.1.60.0030.01519.70
7.1.50.0130.01617.02
7.1.00.0100.06722.57
7.0.200.0030.00516.49
7.0.140.0130.06322.00
7.0.100.0270.07020.00
7.0.90.0530.07719.84
7.0.80.0600.08019.86
7.0.70.0570.06719.87
7.0.60.0530.08719.93
7.0.50.0400.07720.17
7.0.40.0070.04719.98
7.0.30.0070.08719.90
7.0.20.0070.07019.99
7.0.10.0000.09020.00
7.0.00.0000.08720.09
5.6.280.0100.06721.07
5.6.250.0070.08020.54
5.6.240.0070.09020.58
5.6.230.0170.07020.61
5.6.220.0100.07720.56
5.6.210.0100.06020.41
5.6.200.0070.08020.89
5.6.190.0100.04320.96
5.6.180.0130.07721.06
5.6.170.0130.07721.01
5.6.160.0170.07321.08
5.6.150.0070.04021.06
5.6.140.0100.08021.00
5.6.130.0030.05321.08
5.6.120.0100.07721.08
5.6.110.0100.06720.99
5.6.100.0130.07020.86
5.6.90.0070.07321.01
5.6.80.0030.08320.35
5.6.70.0130.06720.37
5.6.60.0030.08320.45
5.6.50.0100.06320.44
5.6.40.0070.05320.31
5.6.30.0070.07720.32
5.6.20.0100.06320.38
5.6.10.0130.06720.30
5.6.00.0100.04320.30
5.5.380.0070.08320.36
5.5.370.0270.06720.37
5.5.360.0030.06020.30
5.5.350.0100.07320.36
5.5.340.0100.08020.72
5.5.330.0030.07020.83
5.5.320.0100.07720.82
5.5.310.0100.06320.85
5.5.300.0200.04720.80
5.5.290.0200.07020.83
5.5.280.0100.07720.80
5.5.270.0130.08020.82
5.5.260.0100.04320.83
5.5.250.0070.06020.66
5.5.240.0100.08020.19
5.5.230.0070.04020.20
5.5.220.0100.04320.21
5.5.210.0200.07019.96
5.5.200.0170.07020.09
5.5.190.0130.08020.07
5.5.180.0030.06320.21
5.5.160.0030.06020.10
5.5.150.0170.07020.18
5.5.140.0130.06020.17
5.5.130.0100.07320.20
5.5.120.0030.07320.18
5.5.110.0100.07320.21
5.5.100.0100.07320.02
5.5.90.0030.07020.09
5.5.80.0130.06020.01
5.5.70.0100.07719.98
5.5.60.0130.05320.00
5.5.50.0200.06720.10
5.5.40.0100.05319.87
5.5.30.0170.06719.98
5.5.20.0130.05720.10
5.5.10.0100.03319.99
5.5.00.0030.04020.01
5.4.450.0030.08719.29
5.4.440.0200.03719.40
5.4.430.0070.06719.13
5.4.420.0000.07719.36
5.4.410.0070.07719.01
5.4.400.0070.07019.07
5.4.390.0030.07719.03
5.4.380.0130.07019.05
5.4.370.0100.06719.04
5.4.360.0070.06719.17
5.4.350.0100.07019.03
5.4.340.0130.05718.95
5.4.320.0170.07018.95
5.4.310.0130.06318.81
5.4.300.0130.06719.07
5.4.290.0070.08018.79
5.4.280.0030.06719.12
5.4.270.0170.05319.11
5.4.260.0230.02718.94
5.4.250.0030.07719.04
5.4.240.0070.08018.81
5.4.230.0030.05319.03
5.4.220.0100.06019.04
5.4.210.0000.08019.11
5.4.200.0070.07319.11
5.4.190.0100.07018.88
5.4.180.0100.05019.05
5.4.170.0030.05019.03
5.4.160.0130.02718.77
5.4.150.0000.04018.79
5.4.140.0030.06016.31
5.4.130.0030.03316.23
5.4.120.0030.03316.23
5.4.110.0000.04316.31
5.4.100.0070.03016.47
5.4.90.0000.04016.24
5.4.80.0030.04316.24
5.4.70.0000.06316.25
5.4.60.0100.06316.38
5.4.50.0070.05716.23
5.4.40.0170.02016.26
5.4.30.0100.04016.20
5.4.20.0030.03716.23
5.4.10.0030.03716.39
5.4.00.0030.03315.75
5.3.290.0030.07314.50
5.3.280.0130.06314.52
5.3.270.0030.04014.55
5.3.260.0100.03714.45
5.3.250.0000.04014.56
5.3.240.0000.04014.60
5.3.230.0030.04014.58
5.3.220.0000.04014.48
5.3.210.0000.04014.42
5.3.200.0030.05714.56
5.3.190.0070.03314.38
5.3.180.0030.05314.55
5.3.170.0070.03314.47
5.3.160.0070.04714.38
5.3.150.0030.05714.51
5.3.140.0070.03314.39
5.3.130.0070.04714.55
5.3.120.0000.04014.45
5.3.110.0070.03314.42
5.3.100.0030.04013.89
5.3.90.0030.03713.84
5.3.80.0070.03013.77
5.3.70.0030.03714.04
5.3.60.0030.04013.79
5.3.50.0030.05013.95
5.3.40.0000.04013.92
5.3.30.0070.06713.90
5.3.20.0030.07313.64
5.3.10.0170.05013.51
5.3.00.0070.07313.61
5.2.170.0070.05311.13
5.2.160.0030.03010.99
5.2.150.0070.05711.10
5.2.140.0070.05711.21
5.2.130.0000.05710.89
5.2.120.0130.02011.12
5.2.110.0070.05310.96
5.2.100.0100.05011.15
5.2.90.0030.06311.05
5.2.80.0070.06310.96
5.2.70.0000.06311.09
5.2.60.0100.05310.96
5.2.50.0070.05711.01
5.2.40.0000.06311.04
5.2.30.0030.05710.93
5.2.20.0030.03011.02
5.2.10.0030.06010.89
5.2.00.0100.05310.74
5.1.60.0070.0309.99
5.1.50.0100.05010.02
5.1.40.0070.0239.85
5.1.30.0070.04710.20
5.1.20.0100.04710.36
5.1.10.0070.05310.07
5.1.00.0030.04310.07
5.0.50.0070.0408.58
5.0.40.0000.0308.48
5.0.30.0030.0578.48
5.0.20.0070.0408.48
5.0.10.0030.0238.48
5.0.00.0100.0578.48
4.4.90.0000.0338.48
4.4.80.0030.0338.48
4.4.70.0000.0208.48
4.4.60.0070.0278.48
4.4.50.0000.0378.48
4.4.40.0030.0378.48
4.4.30.0070.0308.48
4.4.20.0030.0278.48
4.4.10.0030.0208.48
4.4.00.0030.0478.48
4.3.110.0000.0308.48
4.3.100.0030.0338.48
4.3.90.0030.0238.48
4.3.80.0000.0578.48
4.3.70.0000.0278.48
4.3.60.0000.0308.48
4.3.50.0100.0238.48
4.3.40.0030.0408.48
4.3.30.0000.0208.48
4.3.20.0070.0208.48
4.3.10.0000.0378.48
4.3.00.0000.0378.48