3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('x' => array(3, 4)); print_r($a += array('x' => []);

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)
5.4.390.0100.05018.67
5.4.380.0200.05718.73
5.4.370.0100.05318.74
5.4.360.0200.04018.53
5.4.350.0130.05318.53
5.4.340.0130.07318.62
5.4.320.0130.05718.59
5.4.310.0070.06018.76
5.4.300.0100.05718.50
5.4.290.0170.06718.59
5.4.280.0070.07318.75
5.4.270.0100.07318.71
5.4.260.0300.06318.57
5.4.250.0130.07318.80
5.4.240.0200.05318.50
5.4.230.0200.06718.70
5.4.220.0070.07718.77
5.4.210.0170.06318.61
5.4.200.0170.06316.70
5.4.190.0230.06018.52
5.4.180.0070.07718.60
5.4.170.0030.08018.73
5.4.160.0070.07718.76
5.4.150.0230.06018.54
5.4.140.0230.06016.32
5.4.130.0130.05316.17
5.4.120.0030.06016.19
5.4.110.0200.04316.22
5.4.100.0230.05016.30
5.4.90.0070.06016.25
5.4.80.0100.05316.27
5.4.70.0230.04716.39
5.4.60.0170.05016.26
5.4.50.0200.06016.40
5.4.40.0270.05316.39
5.4.30.0170.05716.16
5.4.20.0030.06316.22
5.4.10.0070.06316.19
5.4.00.0130.05715.86
5.3.290.0100.05714.66
5.3.280.0100.07014.69
5.3.270.0100.08014.61
5.3.260.0200.05714.61
5.3.250.0170.07014.54
5.3.240.0200.07014.61
5.3.230.0230.06014.51
5.3.220.0170.06714.54
5.3.210.0130.06714.61
5.3.200.0200.06014.68
5.3.190.0100.07314.53
5.3.180.0070.05714.54
5.3.170.0100.05314.46
5.3.160.0130.05014.55
5.3.150.0200.05014.49
5.3.140.0070.05714.56
5.3.130.0070.07314.54
5.3.120.0130.07314.65
5.3.110.0230.05714.48
5.3.100.0200.05714.02
5.3.90.0130.05714.08
5.3.80.0200.04713.98
5.3.70.0070.05713.95
5.3.60.0130.04713.92
5.3.50.0030.06313.91
5.3.40.0100.06013.98
5.3.30.0100.05314.00
5.3.20.0100.06713.60
5.3.10.0130.06713.60
5.3.00.0000.06013.63
5.2.170.0230.04011.18
5.2.160.0070.06311.05
5.2.150.0100.04711.13
5.2.140.0300.02311.10
5.2.130.0130.04011.07
5.2.120.0070.04011.08
5.2.110.0130.03711.05
5.2.100.0070.04311.14
5.2.90.0130.04011.14
5.2.80.0170.04311.15
5.2.70.0030.06011.06
5.2.60.0070.05710.96
5.2.50.0100.04011.00
5.2.40.0200.04311.13
5.2.30.0070.04711.11
5.2.20.0170.04011.00
5.2.10.0100.04710.84
5.2.00.0030.06010.75
5.1.60.0030.05310.01
5.1.50.0130.04710.02
5.1.40.0000.05710.10
5.1.30.0070.05310.31
5.1.20.0100.03310.42
5.1.10.0100.03310.10
5.1.00.0030.04310.13
5.0.50.0070.0308.57
5.0.40.0000.0378.54
5.0.30.0030.0538.23
5.0.20.0100.0238.40
5.0.10.0000.0378.18
5.0.00.0030.0438.27
4.4.90.0000.0335.87
4.4.80.0070.0235.94
4.4.70.0000.0305.91
4.4.60.0070.0205.91
4.4.50.0070.0175.91
4.4.40.0030.0475.92
4.4.30.0070.0275.89
4.4.20.0130.0235.96
4.4.10.0130.0205.95
4.4.00.0070.0405.89
4.3.110.0030.0305.77
4.3.100.0070.0275.86
4.3.90.0000.0305.89
4.3.80.0000.0405.80
4.3.70.0030.0205.91
4.3.60.0030.0305.80
4.3.50.0030.0275.82
4.3.40.0030.0375.88
4.3.30.0030.0274.54
4.3.20.0070.0234.54
4.3.10.0000.0334.53
4.3.00.0300.01714.62

preferences:
143.06 ms | 1394 KiB | 7 Q