3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $obj = new stdClass(); $obj->a = 65; $stack = array("orange", "banana"); $stack2 = array(array("11", "22",array("77", "99")), "orange2", "banana2", array("33", "44"), new DateTime,$obj); var_dump($stack2); $a='gggg'; array_push($stack, $stack2, 'ff','tt','ii',$stack); print_r($stack); print_r($stack2); /*$stack = array("orange", "banana"); $stack2 = array("orange2", "banana2"); $stack2 = array(array("11", "22"), "orange2", "banana2", array("33", "44")); $result = array_merge($stack,'ff','tt','ii', $stack2); print_r($result);*/
based on r1h8R

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.10.0130.00316.58
7.3.00.0090.01016.62
7.2.130.0160.00516.67
7.2.120.0130.00416.73
7.2.110.0100.01016.68
7.2.100.0060.01016.69
7.2.90.0110.00816.88
7.2.80.0100.01016.72
7.2.70.0110.00916.58
7.2.60.0100.00916.66
7.2.50.0180.00016.92
7.2.40.0090.01216.88
7.2.30.0060.00916.84
7.2.20.0110.00516.84
7.2.10.0080.00816.92
7.2.00.0100.00717.73
7.1.250.0070.01015.45
7.1.240.0100.00715.65
7.1.230.0130.00315.66
7.1.220.0040.01115.76
7.1.210.0100.00715.92
7.1.200.0050.00915.73
7.1.190.0070.01015.87
7.1.180.0130.00315.69
7.1.170.0090.00616.02
7.1.160.0110.00416.00
7.1.150.0090.00915.94
7.1.140.0070.01015.85
7.1.130.0030.01015.71
7.1.120.0130.01015.45
7.1.110.0100.00715.55
7.1.100.0050.01017.01
7.1.90.0100.00715.91
7.1.80.0160.00415.95
7.1.70.0060.00616.46
7.1.60.0090.01117.67
7.1.50.0090.01016.45
7.1.40.0120.00616.00
7.1.30.0110.01115.87
7.1.20.0130.01015.65
7.1.10.0090.00615.77
7.1.00.0100.03719.15
7.0.330.0140.00615.45
7.0.320.0070.01115.36
7.0.310.0100.00715.61
7.0.300.0130.00715.35
7.0.290.0090.00615.29
7.0.280.0030.01015.46
7.0.270.0150.00415.61
7.0.260.0130.01015.47
7.0.250.0130.01115.10
7.0.240.0140.00315.22
7.0.230.0130.01015.60
7.0.220.0150.00914.93
7.0.210.0120.00415.32
7.0.200.0320.00615.09
7.0.190.0150.00315.54
7.0.180.0140.00715.36
7.0.170.0140.00715.27
7.0.160.0140.00615.48
7.0.150.0190.00415.04
7.0.140.0090.00915.43
7.0.130.0190.00415.61
7.0.120.0140.00715.64
7.0.110.0090.00615.52
7.0.100.0140.00315.12
7.0.90.0170.00315.55
7.0.80.0170.01015.23
7.0.70.0130.00315.49
7.0.60.0130.03318.63
7.0.50.0130.03716.76
7.0.40.0080.04616.85
7.0.30.0220.03916.80
7.0.20.0150.02616.89
7.0.10.0090.04516.93
7.0.00.0020.04716.64
hhvm-3.22.00.0790.10589.87
hhvm-3.21.30.0570.12690.30
hhvm-3.21.00.0980.15589.55
hhvm-3.20.20.0460.13890.20
hhvm-3.19.20.0820.10289.43
hhvm-3.18.50.0510.13288.10
hhvm-3.18.40.0590.16587.24
hhvm-3.17.30.0650.15787.18
hhvm-3.15.40.0690.10884.81
hhvm-3.13.20.0530.13696.18
hhvm-3.12.140.0660.15595.38
hhvm-3.11.10.0730.11287.45
hhvm-3.10.10.0430.11584.30
5.6.380.0000.01214.82
5.6.370.0090.01214.68
5.6.360.0100.00714.50
5.6.350.0120.01214.96
5.6.340.0170.00914.71
5.6.330.0150.00614.68
5.6.320.0120.01214.61
5.6.310.0160.00314.45
5.6.300.0040.01214.68
5.6.290.0060.00614.61
5.6.280.0070.02017.67
5.6.270.0070.00714.24
5.6.260.0080.00514.49
5.6.250.0130.00014.64
5.6.240.0090.01014.14
5.6.230.0060.01114.34
5.6.220.0030.01314.27
5.6.210.0120.04317.41
5.6.200.0090.04216.34
5.6.190.0080.02717.56
5.6.180.0130.02517.68
5.6.170.0140.04717.55
5.6.160.0090.04717.47
5.6.150.0090.02316.34
5.6.140.0080.03216.23
5.6.130.0060.02616.28
5.6.120.0060.02317.61
5.6.110.0130.04017.60
5.6.100.0090.04217.64
5.6.90.0080.04317.67
5.6.80.0100.04317.54
5.6.70.0110.00414.15
5.6.60.0090.00614.34
5.6.50.0030.01214.50
5.6.40.0100.01014.27
5.6.30.0170.00814.43
5.6.20.0150.00614.72
5.6.10.0060.01214.22
5.6.00.0100.01014.36
5.5.380.0040.00711.59
5.5.370.0030.00711.29
5.5.360.0030.00311.10
5.5.350.2030.02315.91
5.5.340.0070.04214.70
5.5.330.0030.04115.68
5.5.320.0320.03815.67
5.5.310.0170.04215.90
5.5.300.0110.03814.59
5.5.290.0060.02914.75
5.5.280.0070.04716.02
5.5.270.0100.03316.20
5.5.260.0050.02715.90
5.5.250.0070.02215.94
5.5.240.0130.03215.58
5.5.230.0060.00611.01
5.5.220.0070.00711.13
5.5.210.0070.00311.39
5.5.200.0000.01311.26
5.5.190.0140.00311.54
5.5.180.0140.00011.48
5.5.170.0150.00411.08
5.5.160.0090.00011.16
5.5.150.0060.00611.38
5.5.140.0000.01511.30
5.5.130.0030.01411.23
5.5.120.0060.00611.18
5.5.110.0070.00711.39
5.5.100.0000.01411.10
5.5.90.0090.00311.04
5.5.80.0030.01011.52
5.5.70.0040.00811.05
5.5.60.0100.00711.05
5.5.50.0090.00610.82
5.5.40.0090.00311.29
5.5.30.0100.00311.21
5.5.20.0110.00611.08
5.5.10.0110.00411.30
5.5.00.0060.01211.29
5.4.450.0130.06319.46
5.4.440.0030.06319.49
5.4.430.0370.05019.25
5.4.420.0930.04019.48
5.4.410.0730.04319.45
5.4.400.0830.04719.23
5.4.390.0730.06319.09
5.4.380.0770.06018.94
5.4.370.0630.05319.10
5.4.360.0800.05019.32
5.4.350.0730.05719.18
5.4.340.0730.06019.16
5.4.320.0800.05319.26
5.4.310.0670.06319.28
5.4.300.1070.05019.18
5.4.290.0770.05718.92
5.4.280.0700.06019.16
5.4.270.0770.05319.20
5.4.260.0800.05019.16
5.4.250.0870.04019.18
5.4.240.0800.06019.10
5.4.230.0930.04019.21
5.4.220.0730.06019.09
5.4.210.0830.05019.20
5.4.200.0800.05019.09
5.4.190.0900.04719.27
5.4.180.0770.05719.11
5.4.170.0730.06718.93
5.4.160.0830.05319.27
5.4.150.0830.05318.93
5.4.140.0600.05716.55
5.4.130.0630.06016.45
5.4.120.0670.04316.59
5.3.290.0800.05714.66
5.3.280.0770.05314.58
5.3.270.0730.06314.64
5.3.260.0830.04714.59
5.3.250.0800.05014.60
5.3.240.0600.05314.76
5.3.230.0570.05714.60
5.3.220.0670.04714.59