3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function cmp($a, $b) { if ($a['sort'] == $b['sort']) { return 0; } return ($a['sort'] < $b['sort']) ? -1 : 1; } $a[] = array('name' => 'a1', 'sort'=>3); $a[] = array('name' => 'b2', 'sort'=>2); $a[] = array('name' => 'c3', 'sort'=>1); usort($a, "cmp"); print_r($a);

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.33
7.1.100.0090.00618.22
7.1.70.0050.00217.02
7.1.60.0090.00619.29
7.1.50.0100.01316.71
7.1.00.0100.07022.44
7.0.200.0500.00714.28
7.0.140.0030.07021.95
7.0.100.0000.04319.89
7.0.90.0130.04719.86
7.0.80.0070.08319.93
7.0.70.0070.08019.98
7.0.60.0100.04719.98
7.0.50.0170.04020.20
7.0.40.0100.08020.05
7.0.30.0130.06320.18
7.0.20.0130.07720.13
7.0.10.0170.05320.16
7.0.00.0070.09020.14
5.6.280.0000.07721.13
5.6.250.0100.03720.66
5.6.240.0030.06020.54
5.6.230.0100.05720.53
5.6.220.0070.07720.47
5.6.210.0100.07020.77
5.6.200.0070.08321.09
5.6.190.0100.04721.07
5.6.180.0130.07021.04
5.6.170.0070.08021.12
5.6.160.0130.07720.96
5.6.150.0200.06321.08
5.6.140.0130.09021.08
5.6.130.0200.05721.02
5.6.120.0130.03320.95
5.6.110.0070.06721.02
5.6.100.0030.04021.00
5.6.90.0170.06720.93
5.6.80.0030.07320.49
5.6.70.0070.08020.42
5.6.60.0170.07320.39
5.6.50.0030.08720.43
5.6.40.0100.07020.39
5.6.30.0070.07020.50
5.6.20.0130.07320.46
5.6.10.0070.04320.32
5.6.00.0100.08020.39
5.5.380.0070.05720.44
5.5.370.0200.06320.36
5.5.360.0100.07020.36
5.5.350.0030.04020.40
5.5.340.0100.04320.64
5.5.330.0100.07020.92
5.5.320.0130.08020.80
5.5.310.0070.04720.72
5.5.300.0030.04720.75
5.5.290.0100.05720.90
5.5.280.0100.08020.90
5.5.270.0000.08320.79
5.5.260.0100.04720.82
5.5.250.0100.07020.68
5.5.240.0070.03720.18
5.5.230.0170.06320.27
5.5.220.0130.03720.24
5.5.210.0100.07020.15
5.5.200.0100.08320.23
5.5.190.0130.03320.24
5.5.180.0100.07720.21
5.5.160.0100.05020.22
5.5.150.0070.04720.23
5.5.140.0070.07720.26
5.5.130.0170.06320.17
5.5.120.0100.05320.07
5.5.110.0070.05720.15
5.5.100.0030.04320.07
5.5.90.0000.06720.07
5.5.80.0070.04320.07
5.5.70.0030.05020.00
5.5.60.0030.04320.04
5.5.50.0170.05320.12
5.5.40.0000.06020.05
5.5.30.0030.07319.96
5.5.20.0100.06020.08
5.5.10.0100.04319.97
5.5.00.0030.08020.08
5.4.450.0000.05319.51
5.4.440.0030.08719.53
5.4.430.0130.06719.26
5.4.420.0100.05319.27
5.4.410.0070.08019.32
5.4.400.0030.07719.01
5.4.390.0000.05319.05
5.4.380.0030.08019.12
5.4.370.0100.07718.95
5.4.360.0030.09019.03
5.4.350.0100.07319.13
5.4.340.0070.08318.91
5.4.320.0100.08019.23
5.4.310.0100.07719.20
5.4.300.0070.07719.20
5.4.290.0000.04719.02
5.4.280.0070.03719.13
5.4.270.0130.05019.00
5.4.260.0070.04018.89
5.4.250.0030.04019.14
5.4.240.0100.06318.86
5.4.230.0100.06718.94
5.4.220.0100.04318.89
5.4.210.0070.04319.04
5.4.200.0100.07319.02
5.4.190.0070.05318.84
5.4.180.0030.04318.89
5.4.170.0070.05719.22
5.4.160.0030.08019.01
5.4.150.0030.04019.14
5.4.140.0030.04016.19
5.4.130.0000.03316.45
5.4.120.0100.06716.40
5.4.110.0070.07016.36
5.4.100.0030.03716.49
5.4.90.0030.07016.32
5.4.80.0070.04316.49
5.4.70.0100.06716.39
5.4.60.0170.03016.34
5.4.50.0100.04716.39
5.4.40.0070.07016.46
5.4.30.0030.05016.31
5.4.20.0100.06316.46
5.4.10.0030.07716.43
5.4.00.0070.06715.94
5.3.290.0070.07014.69
5.3.280.0000.04314.52
5.3.270.0030.07014.58
5.3.260.0070.06314.61
5.3.250.0100.06714.66
5.3.240.0070.05314.61
5.3.230.0030.04714.52
5.3.220.0070.04714.63
5.3.210.0070.05014.57
5.3.200.0070.05314.59
5.3.190.0070.05014.53
5.3.180.0170.06714.58
5.3.170.0100.04014.51
5.3.160.0070.07714.57
5.3.150.0100.06314.70
5.3.140.0100.07014.62
5.3.130.0130.06714.54
5.3.120.0130.05314.68
5.3.110.0070.06714.64
5.3.100.0070.07314.10
5.3.90.0000.04714.11
5.3.80.0070.07014.07
5.3.70.0130.04714.02
5.3.60.0030.08014.00
5.3.50.0030.07013.95
5.3.40.0070.04713.92
5.3.30.0100.06713.93
5.3.20.0070.07313.79
5.3.10.0070.06313.67
5.3.00.0170.03013.54
5.2.170.0070.04311.17
5.2.160.0000.07011.06
5.2.150.0070.04011.04
5.2.140.0030.04311.27
5.2.130.0170.05011.15
5.2.120.0100.04711.13
5.2.110.0000.03711.13
5.2.100.0070.05311.03
5.2.90.0100.04311.24
5.2.80.0100.04711.18
5.2.70.0070.05011.10
5.2.60.0070.05011.14
5.2.50.0030.05010.90
5.2.40.0100.05011.07
5.2.30.0030.03010.98
5.2.20.0100.07011.05
5.2.10.0070.04010.98
5.2.00.0070.04710.73
5.1.60.0070.05010.04
5.1.50.0070.0279.98
5.1.40.0030.05010.03
5.1.30.0070.05710.45
5.1.20.0030.03010.41
5.1.10.0000.05710.16
5.1.00.0030.02310.12
5.0.50.0030.0478.98
5.0.40.0030.0438.98
5.0.30.0030.0678.98
5.0.20.0030.0208.98
5.0.10.0100.0378.98
5.0.00.0030.0638.98
4.4.90.0000.0378.98
4.4.80.0000.0178.98
4.4.70.0100.0278.98
4.4.60.0000.0338.98
4.4.50.0030.0338.98
4.4.40.0000.0408.98
4.4.30.0000.0378.98
4.4.20.0030.0238.98
4.4.10.0030.0208.98
4.4.00.0070.0478.98
4.3.110.0030.0378.98
4.3.100.0030.0338.98
4.3.90.0000.0338.98
4.3.80.0030.0238.98
4.3.70.0030.0378.98
4.3.60.0030.0308.98
4.3.50.0030.0178.98
4.3.40.0000.0538.98
4.3.30.0000.0178.98
4.3.20.0000.0378.98
4.3.10.0030.0278.98
4.3.00.0070.0278.98