3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $p=['1','2','3']; echo(count($p));
based on CFZVp

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.60.0060.00916.84
7.2.00.0060.00619.51
7.1.200.0130.00415.51
7.1.100.0040.00418.21
7.1.70.0000.00716.81
7.1.60.0030.00719.50
7.1.50.0030.01916.80
7.1.00.0070.07322.46
7.0.200.0620.00714.89
7.0.140.0000.08021.93
7.0.60.0130.07720.01
7.0.50.0000.09017.82
7.0.40.0200.07020.08
7.0.30.0300.08020.16
7.0.20.0130.04320.00
7.0.10.0370.07720.17
7.0.00.0070.08020.16
5.6.280.0070.07020.90
5.6.210.0070.08020.69
5.6.200.0070.04718.12
5.6.190.0100.08020.56
5.6.180.0270.07720.59
5.6.170.0300.05020.40
5.6.160.0070.04720.41
5.6.150.0100.08318.09
5.6.140.0070.07718.21
5.6.130.0030.08718.11
5.6.120.0100.04020.98
5.6.110.0100.08021.00
5.6.100.0030.08020.98
5.6.90.0130.08021.11
5.6.80.0030.06720.50
5.6.70.0170.04020.39
5.5.350.3670.04320.31
5.5.340.0070.04318.01
5.5.330.0030.07320.47
5.5.320.0100.08320.23
5.5.310.0270.07320.27
5.5.300.0030.04718.01
5.5.290.0030.04017.92
5.5.280.0100.08320.73
5.5.270.0070.08720.96
5.5.260.0070.07320.85
5.5.250.0030.04320.65
5.5.240.0130.07320.17
5.4.450.0200.05019.52
5.4.440.0830.07319.48
5.4.430.1030.05719.09
5.4.420.0200.05319.10
5.4.410.0900.04019.16
5.4.400.0130.06318.61
5.4.390.0330.04018.62
5.4.380.0170.06718.70
5.4.370.0230.05018.52
5.4.360.0070.06018.53
5.4.350.0200.05018.49
5.4.340.0230.05718.57
5.4.320.0230.05318.71
5.4.310.0200.05318.77
5.4.300.0330.04718.56
5.4.290.0200.05318.68
5.4.280.0130.06018.64
5.4.270.0200.05318.56
5.4.260.0170.05718.55
5.4.250.0270.07318.68
5.4.240.0230.07718.71
5.4.230.0270.07018.42
5.4.220.0230.07718.59
5.4.210.0200.07718.51
5.4.200.0270.06316.64
5.4.190.0300.06718.71
5.4.180.0200.05718.59
5.4.170.0270.04718.47
5.4.160.0130.05718.44
5.4.150.0200.05318.58
5.4.140.0200.06316.27
5.4.130.0230.05016.16
5.4.120.0200.04716.12
5.4.110.0100.05316.26
5.4.100.0170.05316.04
5.4.90.0270.07016.25
5.4.80.0270.04716.35
5.4.70.0300.05016.17
5.4.60.0200.05016.34
5.4.50.0170.04716.25
5.4.40.0200.06316.01
5.4.30.0200.04716.22
5.4.20.0100.05716.27
5.4.10.0130.05316.13
5.4.00.0270.04015.75
5.3.290.0100.07014.65
5.3.280.0170.05714.54
5.3.270.0170.06714.61
5.3.260.0170.05714.70
5.3.250.0170.07714.58
5.3.240.0330.05014.60
5.3.230.0230.05014.58
5.3.220.0170.06314.60
5.3.210.0270.06714.47
5.3.200.0170.05314.60
5.3.190.0300.05014.48
5.3.180.0170.05714.48
5.3.170.0130.05714.57
5.3.160.0300.05714.55
5.3.150.0200.04714.66
5.3.140.0170.05014.45
5.3.130.0170.05014.50
5.3.120.0130.05314.64
5.3.110.0170.05314.53
5.3.100.0130.05314.14
5.3.90.0270.06714.07
5.3.80.0200.05014.09
5.3.70.0130.05313.98
5.3.60.0200.04713.99
5.3.50.0130.05313.92
5.3.40.0200.05314.04
5.3.30.0230.04314.00
5.3.20.0200.04713.58
5.3.10.0200.04713.76
5.3.00.0230.04313.53
5.2.170.0130.05711.11
5.2.160.0200.05011.30
5.2.150.0130.04311.18
5.2.140.0170.04311.09
5.2.130.0130.04011.16
5.2.120.0170.03711.07
5.2.110.0100.05011.15
5.2.100.0170.03711.12
5.2.90.0100.04311.18
5.2.80.0130.04011.08
5.2.70.0100.05011.23
5.2.60.0170.04011.20
5.2.50.0070.05011.02
5.2.40.0130.04011.02
5.2.30.0100.04010.96
5.2.20.0130.03710.94
5.2.10.0100.04310.98
5.2.00.0130.04010.87
5.1.60.0170.0339.99
5.1.50.0070.04010.11
5.1.40.0070.0439.97
5.1.30.0130.03710.34
5.1.20.0070.04710.40
5.1.10.0070.04310.11
5.1.00.0230.04010.10
5.0.50.0030.0378.53
5.0.40.0200.0208.55
5.0.30.0070.0438.24
5.0.20.0070.0338.29
5.0.10.0070.0308.18
5.0.00.0100.0538.29
4.4.90.0070.0305.88
4.4.80.0070.0305.92
4.4.70.0070.0305.82
4.4.60.0070.0275.96
4.4.50.0130.0235.82
4.4.40.0130.0305.91
4.4.30.0000.0305.89
4.4.20.0130.0206.00
4.4.10.0070.0205.93
4.4.00.0070.0375.94
4.3.110.0100.0275.82
4.3.100.0070.0305.82
4.3.90.0100.0275.80
4.3.80.0100.0405.79
4.3.70.0130.0275.80
4.3.60.0100.0235.79
4.3.50.0100.0205.91
4.3.40.0070.0335.76
4.3.30.0030.0234.55
4.3.20.0100.0174.55
4.3.10.0000.0274.51
4.3.00.0030.0237.15