3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo($test = array()) { echo (is_array($test)) ? 'ja' : 'nein'; } foo(array()); ?>

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.0080.00416.78
7.2.00.0280.00718.85
7.1.200.0060.00615.58
7.1.100.0040.00817.93
7.1.70.0130.00317.04
7.1.60.0100.01319.70
7.1.50.0030.01616.62
7.1.00.0070.07322.31
7.0.200.0000.00816.69
7.0.140.0030.07021.97
7.0.100.0170.07019.84
7.0.90.0230.07319.79
7.0.80.0030.04719.84
7.0.70.0070.07719.89
7.0.60.0070.04319.86
7.0.50.0400.08320.30
7.0.40.0070.08320.14
7.0.30.0130.08020.00
7.0.20.0230.06320.17
7.0.10.0130.08320.05
7.0.00.0070.08720.08
5.6.280.0000.07321.01
5.6.250.0130.07320.54
5.6.240.0130.08020.61
5.6.230.0100.06320.47
5.6.220.0100.05720.46
5.6.210.0070.08020.40
5.6.200.0070.04720.96
5.6.190.0070.08721.04
5.6.180.0100.07721.09
5.6.170.0130.08321.08
5.6.160.0100.07320.96
5.6.150.0070.05721.03
5.6.140.0030.07321.08
5.6.130.0130.06721.01
5.6.120.0070.09021.02
5.6.110.0030.08321.08
5.6.100.0030.05021.13
5.6.90.0070.07020.94
5.6.80.0100.06320.52
5.6.70.0070.07320.40
5.6.60.0030.04020.32
5.6.50.0100.07720.42
5.6.40.0070.04320.53
5.6.30.0100.07720.37
5.6.20.0130.07320.46
5.6.10.0100.08020.37
5.6.00.0170.07020.43
5.5.380.0070.08320.31
5.5.370.0070.08020.30
5.5.360.0000.06320.38
5.5.350.0070.07720.29
5.5.340.0070.08720.83
5.5.330.0100.08320.89
5.5.320.0100.07720.89
5.5.310.0130.07020.79
5.5.300.0130.08020.83
5.5.290.0070.07320.77
5.5.280.0100.03720.82
5.5.270.0030.07720.63
5.5.260.0100.08320.81
5.5.250.0130.08020.61
5.5.240.0170.07020.32
5.5.230.0070.05320.24
5.5.220.0070.07720.24
5.5.210.0130.05720.28
5.5.200.0100.07720.11
5.5.190.0070.08019.99
5.5.180.0000.05020.19
5.5.160.0030.08320.28
5.5.150.0130.07020.09
5.5.140.0000.08320.14
5.5.130.0100.08020.18
5.5.120.0130.07320.24
5.5.110.0130.06320.26
5.5.100.0230.05320.13
5.5.90.0100.05020.07
5.5.80.0130.05320.07
5.5.70.0100.07020.16
5.5.60.0030.04320.05
5.5.50.0030.04020.06
5.5.40.0030.04319.91
5.5.30.0100.06720.08
5.5.20.0030.07720.08
5.5.10.0100.06320.05
5.5.00.0100.04020.01
5.4.450.0000.04319.42
5.4.440.0070.07319.50
5.4.430.0030.08019.35
5.4.420.0070.08319.41
5.4.410.0070.05019.41
5.4.400.0100.04019.04
5.4.390.0100.06719.16
5.4.380.0100.07019.16
5.4.370.0130.07319.16
5.4.360.0030.04319.23
5.4.350.0130.06019.25
5.4.340.0030.08018.98
5.4.320.0130.03719.13
5.4.310.0070.05718.88
5.4.300.0030.08019.05
5.4.290.0230.06319.22
5.4.280.0000.07319.20
5.4.270.0070.08019.09
5.4.260.0030.05719.18
5.4.250.0100.06318.89
5.4.240.0070.06019.11
5.4.230.0100.05318.86
5.4.220.0000.04719.20
5.4.210.0070.05018.84
5.4.200.0100.06719.04
5.4.190.0100.03718.86
5.4.180.0100.07319.02
5.4.170.0100.06318.89
5.4.160.0070.04019.01
5.4.150.0130.06018.89
5.4.140.0070.03316.46
5.4.130.0070.07016.49
5.4.120.0030.05016.42
5.4.110.0070.07316.42
5.4.100.0000.04316.50
5.4.90.0030.06716.32
5.4.80.0030.03316.30
5.4.70.0030.07016.34
5.4.60.0100.06716.48
5.4.50.0030.06016.36
5.4.40.0070.07716.43
5.4.30.0030.07016.43
5.4.20.0070.04316.32
5.4.10.0170.06316.45
5.4.00.0100.03315.78
5.3.290.0100.06714.58
5.3.280.0100.05314.54
5.3.270.0170.03314.55
5.3.260.0070.07014.65
5.3.250.0100.06714.53
5.3.240.0070.05714.74
5.3.230.0030.04314.62
5.3.220.0000.04714.49
5.3.210.0030.07014.70
5.3.200.0030.06714.63
5.3.190.0100.06314.62
5.3.180.0030.03714.48
5.3.170.0000.07014.49
5.3.160.0000.07014.55
5.3.150.0000.04314.58
5.3.140.0000.05714.47
5.3.130.0030.08014.66
5.3.120.0030.07714.64
5.3.110.0070.04314.62
5.3.100.0070.06714.16
5.3.90.0070.07714.01
5.3.80.0100.03713.95
5.3.70.0100.07314.00
5.3.60.0070.05014.14
5.3.50.0070.06714.00
5.3.40.0030.07314.03
5.3.30.0070.07013.90
5.3.20.0130.03313.79
5.3.10.0070.05013.76
5.3.00.0100.07013.64
5.2.170.0070.06011.25
5.2.160.0070.03311.14
5.2.150.0070.03011.14
5.2.140.0100.02711.18
5.2.130.0130.04011.10
5.2.120.0030.05311.08
5.2.110.0100.05711.08
5.2.100.0070.04011.12
5.2.90.0070.04311.13
5.2.80.0030.05711.08
5.2.70.0070.05711.07
5.2.60.0030.06711.04
5.2.50.0030.05311.10
5.2.40.0070.03011.11
5.2.30.0070.05311.06
5.2.20.0130.05010.82
5.2.10.0070.05710.96
5.2.00.0070.05310.76
5.1.60.0100.03710.04
5.1.50.0000.03310.05
5.1.40.0000.05010.04
5.1.30.0070.04310.27
5.1.20.0030.04010.33
5.1.10.0000.0409.95
5.1.00.0000.03010.05
5.0.50.0030.0239.75
5.0.40.0030.0179.75
5.0.30.0000.0309.75
5.0.20.0000.0209.75
5.0.10.0000.0209.75
5.0.00.0000.0309.75
4.4.90.0030.0179.75
4.4.80.0000.0209.75
4.4.70.0070.0139.75
4.4.60.0070.0139.75
4.4.50.0030.0139.75
4.4.40.0000.0279.75
4.4.30.0030.0139.75
4.4.20.0000.0409.75
4.4.10.0070.0239.75
4.4.00.0000.0279.75
4.3.110.0030.0139.75
4.3.100.0000.0179.75
4.3.90.0000.0179.75
4.3.80.0000.0239.75
4.3.70.0000.0179.75
4.3.60.0070.0109.75
4.3.50.0030.0139.75
4.3.40.0000.0239.75
4.3.30.0030.0139.75
4.3.20.0000.0179.75
4.3.10.0000.0139.75
4.3.00.0000.0139.75