3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = unserialize(''); if (!in_array('foo', $a)) { print 'trueish'; }

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.0rc40.0120.00498.97
7.3.0rc30.0060.00616.54
7.3.0beta10.0090.00012.44
7.3.0alpha10.0110.00012.55
7.2.60.0100.00016.96
7.2.00.0280.00419.04
7.1.200.0080.00415.80
7.1.100.0060.00618.18
7.1.70.0040.00417.05
7.1.60.0120.01219.32
7.1.50.0030.01316.88
7.1.00.0000.03722.57
7.0.200.0000.00916.77
7.0.140.0070.07022.09
7.0.60.0100.07720.03
7.0.50.0070.07717.91
7.0.40.0100.08719.90
7.0.30.0600.06320.18
7.0.20.0400.07020.09
7.0.10.0000.04720.14
7.0.00.0000.06020.16
5.6.280.0030.07321.06
5.6.210.0070.08020.61
5.6.200.0130.07718.08
5.6.190.0170.08020.27
5.6.180.3870.03720.66
5.6.170.0230.05020.40
5.6.160.0100.04720.61
5.6.150.0130.06718.21
5.6.140.0070.08018.11
5.6.130.0070.07318.18
5.6.120.0230.06720.96
5.6.110.0030.09020.98
5.6.100.0030.08020.89
5.6.90.0070.07320.93
5.6.80.0100.07320.28
5.6.70.2970.02720.36
5.5.350.0070.08020.43
5.5.340.0030.08717.95
5.5.330.0100.07720.21
5.5.320.0330.05020.29
5.5.310.0330.04720.21
5.5.300.0100.03018.02
5.5.290.0030.04017.89
5.5.280.0100.05720.77
5.5.270.0100.08320.72
5.5.260.0070.07720.79
5.5.250.0030.06020.57
5.5.240.0070.07720.23
5.4.450.0030.07019.48
5.4.440.0100.05019.57
5.4.430.0030.04719.45
5.4.420.0030.04019.38
5.4.410.0030.07319.44
5.4.400.0100.04718.84
5.4.390.0030.07019.09
5.4.380.0030.05019.09
5.4.370.0030.07319.09
5.4.360.0100.08319.20
5.4.350.0030.07018.91
5.4.340.0100.04719.25
5.4.320.0030.06019.10
5.4.310.0030.04719.25
5.4.300.0000.05018.89
5.4.290.0030.06718.84
5.4.280.0100.04719.09
5.4.270.0070.07318.88
5.4.260.0070.07018.88
5.4.250.0070.05019.23
5.4.240.0000.07318.88
5.4.230.0000.07019.03
5.4.220.0100.07319.07
5.4.210.0100.05319.11
5.4.200.0070.07018.88
5.4.190.0170.07319.24
5.4.180.0070.06718.91
5.4.170.0100.07319.08
5.4.160.0030.07719.24
5.4.150.0000.08019.14
5.4.140.0070.06016.26
5.4.130.0070.07316.54
5.4.120.0030.05016.34
5.4.110.0070.06316.39
5.4.100.0070.04716.46
5.4.90.0000.07716.46
5.4.80.0030.07016.43
5.4.70.0100.06716.41
5.4.60.0070.05016.47
5.4.50.0070.06016.36
5.4.40.0070.04716.45
5.4.30.0000.06716.36
5.4.20.0070.04716.04
5.4.10.0030.07716.37
5.4.00.0070.04315.88
5.3.290.0000.05014.51
5.3.280.0030.05714.64
5.3.270.0100.07314.47
5.3.260.0100.07014.69
5.3.250.0030.06014.45
5.3.240.0030.06714.63
5.3.230.0070.05714.50
5.3.220.0030.05714.41
5.3.210.0070.06014.47
5.3.200.0000.06014.51
5.3.190.0030.05714.61
5.3.180.0100.05014.41
5.3.170.0000.07314.51
5.3.160.0000.07314.43
5.3.150.0000.07714.65
5.3.140.0170.06314.64
5.3.130.0030.04014.42
5.3.120.0100.04314.38
5.3.110.0070.04314.41
5.3.100.0070.07313.98
5.3.90.0000.06313.86
5.3.80.0030.04013.96
5.3.70.0070.06313.86
5.3.60.0000.03714.09
5.3.50.0070.07013.79
5.3.40.0070.05713.98
5.3.30.0000.04013.75
5.3.20.0030.07313.46
5.3.10.0070.06313.52
5.3.00.0070.06713.73
5.2.170.0030.04311.74
5.2.160.0000.06311.74
5.2.150.0030.02711.74
5.2.140.0030.03311.74
5.2.130.0030.06011.74
5.2.120.0030.04311.74
5.2.110.0000.06011.74
5.2.100.0030.05311.74
5.2.90.0000.05711.74
5.2.80.0030.06711.74
5.2.70.0000.06711.74
5.2.60.0100.05011.74
5.2.50.0070.05311.74
5.2.40.0070.03711.74
5.2.30.0000.04011.74
5.2.20.0000.03011.74
5.2.10.0000.04711.74
5.2.00.0070.06011.74
5.1.60.0000.04711.74
5.1.50.0070.04011.74
5.1.40.0070.03011.74
5.1.30.0030.03711.74
5.1.20.0000.05711.74
5.1.10.0030.05711.74
5.1.00.0030.06011.74
5.0.50.0030.03011.74
5.0.40.0000.02311.74
5.0.30.0030.03711.74
5.0.20.0000.04011.74
5.0.10.0030.04711.74
5.0.00.0000.06711.74
4.4.90.0030.02711.74
4.4.80.0030.02011.74
4.4.70.0030.02711.74
4.4.60.0030.02311.74
4.4.50.0000.02311.74
4.4.40.0030.04011.74
4.4.30.0000.02311.74
4.4.20.0070.02311.74
4.4.10.0070.03311.74
4.4.00.0000.05311.74
4.3.110.0030.03711.74
4.3.100.0000.04011.74
4.3.90.0070.02711.74
4.3.80.0070.03311.74
4.3.70.0000.03711.74
4.3.60.0030.02711.74
4.3.50.0030.02011.74
4.3.40.0000.05711.74
4.3.30.0030.02711.74
4.3.20.0000.02311.74
4.3.10.0030.03011.74
4.3.00.0030.02711.74