3v4l.org

run code in 300+ PHP versions simultaneously
<?php $st = microtime(true); $x=array("x"=>1, "y"=>2); $y = array("y"=>3, "z"=>4); for ($i=1; $i<=500000; $i++) { $y + $x; } echo 'TIME:' . (microtime(true) - $st) . '<br/>'; $st = microtime(true); $x=array("x"=>1, "y"=>2); $y = array("y"=>3, "z"=>4); for ($i=1; $i<=500000; $i++) { array_merge($x, $y); } echo 'TIME:' . (microtime(true) - $st) . '<br/>';

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).

VersionSystem time (s)User time (s)Memory (MiB)
7.3.10.0080.11216.49
7.3.00.0080.11016.31
7.2.130.0100.14016.52
7.2.120.0070.14616.53
7.2.110.0080.14516.78
7.2.100.0080.15316.57
7.2.90.0130.15016.87
7.2.80.0190.13716.80
7.2.70.0100.13916.65
7.2.60.0090.14016.75
7.2.50.0120.15616.66
7.2.40.0100.15016.71
7.2.30.0070.16216.64
7.2.20.0050.15716.55
7.2.10.0080.15416.53
7.2.00.0040.14017.69
7.1.250.0080.18115.57
7.1.70.0030.12517.22
7.1.60.0030.15919.70
7.1.50.0130.11817.02
7.1.00.0130.17722.36
7.0.200.0030.08816.63
7.0.140.0030.17322.07
7.0.60.0000.15021.55
7.0.50.0130.15317.80
7.0.40.0030.13320.40
7.0.30.0270.15320.18
7.0.20.0200.18020.17
7.0.10.0000.12320.16
7.0.00.0070.17019.99
5.6.280.0070.32720.86
5.6.210.0070.31020.54
5.6.200.0000.25318.20
5.6.190.0030.24320.61
5.6.180.0170.23320.60
5.6.170.0330.24720.54
5.6.160.0100.29720.50
5.6.150.0000.24318.19
5.6.140.0100.28718.20
5.6.130.0100.26718.18
5.6.120.0070.24021.11
5.6.110.0100.29020.98
5.6.100.0070.31021.13
5.6.90.0070.32320.97
5.6.80.0070.28020.52
5.5.350.0130.29020.43
5.5.340.0130.28717.89
5.5.330.0070.31720.36
5.5.320.0270.32720.27
5.5.310.0230.25720.17
5.5.300.0070.28717.98
5.5.290.0100.30718.01
5.5.280.0100.29020.84
5.5.270.0170.28320.84
5.5.260.0030.27320.95
5.5.250.0130.23020.55
5.5.240.0230.28320.19
5.4.450.0100.37319.25
5.4.440.0170.40019.50
5.4.430.0000.49019.32
5.4.420.0070.40319.23
5.4.410.0070.40719.29
5.4.400.0100.45719.08
5.4.390.0000.35718.78
5.4.380.0070.35718.80
5.4.370.0030.37019.14
5.4.360.0030.37719.01
5.4.350.0030.40019.12
5.4.340.0570.37719.08
5.4.320.0070.41319.11
5.4.310.0000.40319.08
5.4.300.0130.48318.80
5.4.290.0130.41018.80
5.4.280.0000.45718.78
5.4.270.0030.39719.11
5.4.260.0070.33719.15
5.4.250.0030.35019.07
5.4.240.0630.33319.13
5.4.230.0030.35018.91
5.4.220.0000.35719.18
5.4.210.0030.35319.15
5.4.200.0030.39019.17
5.4.190.0100.37019.17
5.4.180.0130.40018.80
5.4.170.0030.35319.11
5.4.160.0030.35319.06
5.4.150.0100.41318.76
5.4.140.0100.40716.38
5.4.130.0070.41016.24
5.4.120.0100.34016.28
5.4.110.0070.33316.29
5.4.100.0070.39016.25
5.4.90.0070.34316.36
5.4.80.0070.33316.15
5.4.70.0000.35016.38
5.4.60.0000.41016.39
5.4.50.0030.41316.12
5.4.40.0100.37316.36
5.4.30.0070.38716.38
5.4.20.0070.41716.23
5.4.10.0030.38016.21
5.4.00.0030.35315.73
5.3.290.0830.36014.59
5.3.280.0030.36314.52
5.3.270.0100.44014.42
5.3.260.0070.42014.39
5.3.250.0070.43714.50
5.3.240.0100.40714.39
5.3.230.0000.44014.54
5.3.220.0100.43014.35
5.3.210.0030.44714.49
5.3.200.0030.44014.48
5.3.190.0030.43714.51
5.3.180.0070.37014.48
5.3.170.0030.36014.50
5.3.160.0000.51314.50
5.3.150.0100.42714.54
5.3.140.0070.42714.43
5.3.130.0000.43014.50
5.3.120.0100.42714.48
5.3.110.0100.37714.49
5.3.100.0000.38313.93
5.3.90.0100.46313.80
5.3.80.0070.45313.96
5.3.70.0000.42313.95
5.3.60.0100.42713.93
5.3.50.0070.37313.92
5.3.40.0030.37013.77
5.3.30.0030.40313.83
5.3.20.0000.43313.66
5.3.10.0070.42313.74
5.3.00.0070.29713.58
5.2.170.0000.36311.15
5.2.160.0030.39710.97
5.2.150.0100.42711.12
5.2.140.0000.42011.30
5.2.130.0030.36711.05
5.2.120.0030.43311.01
5.2.110.0070.44011.08
5.2.100.0070.42311.00
5.2.90.0100.42711.09
5.2.80.0030.42311.06
5.2.70.0070.43311.09
5.2.60.0070.41710.94
5.2.50.0030.39711.00
5.2.40.0130.39710.96
5.2.30.0000.44010.90
5.2.20.0000.41010.88
5.2.10.0030.39310.91
5.2.00.0030.43710.72
5.1.60.0070.3679.96
5.1.50.0030.36710.05
5.1.40.0000.3739.95
5.1.30.0630.41310.40
5.1.20.0030.41310.36
5.1.10.0030.39710.11
5.1.00.0070.40010.04
5.0.50.0070.5238.50
5.0.40.0100.4938.32
5.0.30.0030.5478.23
5.0.20.0000.5038.28
5.0.10.0030.5238.16
5.0.00.0000.5478.13
4.4.90.0070.5007.75
4.4.80.0000.5037.75
4.4.70.0030.5137.75
4.4.60.0070.6877.75
4.4.50.0000.5777.75
4.4.40.0000.5507.75
4.4.30.0000.5537.75
4.4.20.0000.5277.75
4.4.10.0000.5677.75
4.4.00.0000.5307.75
4.3.110.0030.5407.75
4.3.100.0030.5307.75
4.3.90.0000.5577.75
4.3.80.0000.4807.75
4.3.70.0000.4677.75
4.3.60.0000.4637.75
4.3.50.0470.5137.75
4.3.40.0030.4707.75
4.3.30.0030.4477.75
4.3.20.0000.5437.75
4.3.10.0000.4707.75
4.3.00.0000.4577.75

preferences:
39.56 ms | 401 KiB | 5 Q