3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1, 2); $b = array(3,4,5); print_r($a + $b); print_r(array_merge($a, $b))

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.6.10.0070.04717.43
5.6.00.0070.03717.56
5.5.160.0070.06717.27
5.5.150.0030.05317.35
5.5.140.0030.04717.30
5.5.130.0070.07717.29
5.5.120.0070.05317.29
5.5.110.0030.04317.27
5.5.100.0030.05317.24
5.5.90.0030.04017.20
5.5.80.0000.04017.16
5.5.70.0070.03317.25
5.5.60.0000.04017.16
5.5.50.0070.03317.26
5.5.40.0070.05317.16
5.5.30.0030.03717.25
5.5.20.0100.03017.19
5.5.10.0000.04017.18
5.5.00.0000.04017.12
5.4.320.0000.04318.97
5.4.310.0070.03718.83
5.4.300.0000.08318.98
5.4.290.0070.04719.04
5.4.280.0030.04718.89
5.4.270.0070.06018.95
5.4.260.0100.03318.82
5.4.250.0000.05018.98
5.4.240.0030.03719.09
5.4.230.0070.03318.89
5.4.220.0000.04019.03
5.4.210.0030.03718.98
5.4.200.0100.03019.12
5.4.190.0070.03318.95
5.4.180.0030.05018.88
5.4.170.0000.04018.98
5.4.160.0130.02719.10
5.4.150.0070.03318.97
5.4.140.0030.03316.29
5.4.130.0000.03716.27
5.4.120.0000.03716.30
5.4.110.0030.03716.37
5.4.100.0070.03016.30
5.4.90.0070.03316.45
5.4.80.0030.03716.41
5.4.70.0000.03716.37
5.4.60.0070.03016.27
5.4.50.0000.03716.23
5.4.40.0000.03716.36
5.4.30.0070.03016.40
5.4.20.0030.03316.39
5.4.10.0070.03016.30
5.4.00.0030.03315.68
5.3.290.0070.08014.49
5.3.280.0030.03714.57
5.3.270.0000.04014.59
5.3.260.0000.06714.55
5.3.250.0030.03714.52
5.3.240.0030.03714.57
5.3.230.0030.03714.42
5.3.220.0000.04314.58
5.3.210.0070.03314.65
5.3.200.0000.04014.65
5.3.190.0100.03014.56
5.3.180.0030.03314.50
5.3.170.0100.02714.49
5.3.160.0030.03714.54
5.3.150.0030.03314.39
5.3.140.0000.03714.38
5.3.130.0070.03314.49
5.3.120.0070.03314.51
5.3.110.0000.04014.48
5.3.100.0170.03013.99
5.3.90.0030.03313.85
5.3.80.0070.03314.09
5.3.70.0030.03714.09
5.3.60.0070.03313.95
5.3.50.0030.06713.94
5.3.40.0030.07013.87
5.3.30.0030.04013.88
5.3.20.0030.04313.66
5.3.10.0130.06313.56
5.3.00.0030.08013.59

preferences:
141.43 ms | 1394 KiB | 7 Q