3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [1,2,5]; $b = 3; $a = array_merge($a,(array)$b); var_dump($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).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.70.0070.00718.09
8.3.60.0180.00418.43
8.3.50.0110.00418.16
8.3.40.0040.01118.63
8.3.30.0160.00018.42
8.3.20.0000.00819.16
8.3.10.0040.00421.83
8.3.00.0030.00520.56
8.2.180.0120.00318.29
8.2.170.0110.01122.96
8.2.160.0100.00320.72
8.2.150.0050.00224.18
8.2.140.0080.00024.66
8.2.130.0050.00219.64
8.2.120.0070.00026.35
8.2.110.0090.00020.52
8.2.100.0070.00417.66
8.2.90.0000.00817.50
8.2.80.0000.00818.66
8.2.70.0030.00617.91
8.2.60.0000.00918.06
8.2.50.0050.00318.10
8.2.40.0000.00821.07
8.2.30.0000.00719.09
8.2.20.0050.00317.84
8.2.10.0040.00418.05
8.2.00.0050.00317.57
8.1.280.0110.00725.92
8.1.270.0040.00418.87
8.1.260.0000.00726.35
8.1.250.0030.00628.09
8.1.240.0000.01123.80
8.1.230.0040.00722.71
8.1.220.0080.00017.79
8.1.210.0030.00518.77
8.1.200.0050.00517.22
8.1.190.0040.00417.50
8.1.180.0050.00318.10
8.1.170.0040.00418.53
8.1.160.0050.00218.72
8.1.150.0050.00318.86
8.1.140.0000.00722.12
8.1.130.0030.00320.06
8.1.120.0030.00317.43
8.1.110.0100.00017.43
8.1.100.0000.00817.31
8.1.90.0040.00417.26
8.1.80.0080.00017.25
8.1.70.0000.00717.40
8.1.60.0000.00817.61
8.1.50.0040.00417.51
8.1.40.0000.00817.39
8.1.30.0070.00017.57
8.1.20.0050.00217.71
8.1.10.0030.00617.41
8.1.00.0040.00417.23
8.0.300.0000.00718.77
8.0.290.0050.00316.63
8.0.280.0030.00318.43
8.0.270.0030.00317.18
8.0.260.0070.00018.38
8.0.250.0040.00416.85
8.0.240.0040.00416.84
8.0.230.0070.00016.85
8.0.220.0000.01016.82
8.0.210.0040.00416.78
8.0.200.0060.00016.74
8.0.190.0070.00016.89
8.0.180.0040.00416.73
8.0.170.0090.00016.72
8.0.160.0070.00016.79
8.0.150.0070.00016.67
8.0.140.0000.00816.65
8.0.130.0060.00013.26
8.0.120.0000.00816.81
8.0.110.0030.00616.82
8.0.100.0040.00416.82
8.0.90.0040.00416.91
8.0.80.0070.01216.73
8.0.70.0080.00016.74
8.0.60.0000.00816.64
8.0.50.0040.00316.88
8.0.30.0070.01216.90
8.0.20.0030.01417.40
8.0.10.0000.00817.04
8.0.00.0090.00916.78
7.4.330.0020.00215.55
7.4.320.0030.00316.64
7.4.300.0000.00616.54
7.4.290.0000.00716.58
7.4.280.0040.00416.47
7.4.270.0000.00816.48
7.4.260.0000.00716.41
7.4.250.0040.00416.57
7.4.240.0080.00016.44
7.4.230.0040.00416.67
7.4.220.0030.00516.40
7.4.210.0040.01016.56
7.4.200.0030.00316.53
7.4.160.0140.00516.43
7.4.140.0090.01017.86
7.4.130.0030.01416.56
7.4.120.0130.00616.47
7.4.110.0120.00616.46
7.4.100.0090.00916.47
7.4.90.0130.00616.38
7.4.80.0060.01019.39
7.4.70.0110.00616.30
7.4.60.0090.00616.51
7.4.50.0070.01016.47
7.4.40.0190.00316.69
7.3.330.0000.00513.12
7.3.320.0050.00013.03
7.3.310.0030.00616.12
7.3.300.0030.00316.19
7.3.290.0000.00716.20
7.3.280.0060.01116.19
7.3.260.0110.00816.31
7.3.240.0100.00916.27
7.3.230.0110.00516.31
7.3.210.0120.00616.15
7.3.200.0190.00316.25
7.3.190.0120.01116.42
7.3.180.0100.00616.09
7.3.170.0070.01116.32
7.3.160.0100.00716.15
7.2.330.0030.01416.55
7.2.320.0060.01716.48
7.2.310.0130.00616.57
7.2.300.0110.00516.63
7.2.290.0070.01116.59

preferences:
48.35 ms | 401 KiB | 5 Q