3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array_merge([1,2], [3,4]); sort($array); var_dump($array);

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.1.100.0040.00417.32
8.1.90.0000.00817.33
8.1.80.0000.00817.31
8.1.70.0070.00017.38
8.1.60.0050.00217.43
8.1.50.0020.00517.50
8.1.40.0040.00417.34
8.1.30.0040.00417.58
8.1.20.0000.00917.57
8.1.10.0000.00817.46
8.1.00.0040.00417.42
8.0.230.0050.00316.79
8.0.220.0000.00716.85
8.0.210.0020.00516.71
8.0.200.0070.00016.92
8.0.190.0040.00416.85
8.0.180.0030.00316.77
8.0.170.0080.00416.88
8.0.160.0000.00716.79
8.0.150.0000.00716.76
8.0.140.0000.00716.77
8.0.130.0030.00313.20
8.0.120.0000.00916.73
8.0.110.0080.00016.86
8.0.100.0080.00016.70
8.0.90.0040.00416.69
8.0.80.0070.00716.76
8.0.70.0000.00716.70
8.0.60.0000.00816.75
8.0.50.0050.00316.91
8.0.30.0130.00617.02
8.0.20.0120.00616.93
8.0.10.0080.00016.95
8.0.00.0110.00916.54
7.4.300.0030.00316.41
7.4.290.0000.00716.39
7.4.280.0050.00316.42
7.4.270.0070.00016.43
7.4.260.0040.00416.36
7.4.250.0000.00716.47
7.4.240.0050.00216.57
7.4.230.0030.00316.33
7.4.220.0040.00416.55
7.4.210.0070.00716.54
7.4.200.0070.00016.50
7.4.160.0100.00816.48
7.4.140.0130.00617.86
7.4.130.0150.00316.41
7.4.120.0100.00616.41
7.4.110.0060.01116.39
7.4.100.0150.00316.43
7.4.90.0070.01116.50
7.4.80.0090.00919.39
7.4.70.0070.01016.22
7.4.60.0110.00516.39
7.4.50.0030.01416.36
7.4.40.0100.00716.23
7.4.10.0110.00815.04
7.4.00.0060.01114.72
7.3.330.0000.00612.89
7.3.320.0030.00312.93
7.3.310.0000.00716.13
7.3.300.0060.00016.15
7.3.290.0050.00215.91
7.3.280.0130.00816.11
7.3.260.0130.00916.36
7.3.240.0090.01016.21
7.3.230.0100.00716.31
7.3.210.0080.00816.16
7.3.200.0060.00916.24
7.3.190.0030.01316.14
7.3.180.0080.00916.27
7.3.170.0060.01316.19
7.3.160.0120.00416.27
7.3.130.0040.01314.56
7.3.120.0100.00714.82
7.3.110.0110.00714.30
7.3.100.0120.00614.25
7.3.90.0120.00614.91
7.3.80.0060.00814.66
7.3.70.0090.00314.73
7.3.60.0000.00914.49
7.3.50.0020.01214.67
7.3.40.0100.01014.56
7.3.30.0100.00414.63
7.3.20.0090.00816.48
7.3.10.0100.00416.41
7.3.00.0060.00716.46
7.2.330.0030.01416.59
7.2.320.0100.01016.57
7.2.310.0090.01216.29
7.2.300.0040.01316.41
7.2.290.0120.00816.66
7.2.260.0000.01715.05
7.2.250.0140.00314.98
7.2.240.0100.00614.71
7.2.230.0070.01014.64
7.2.220.0030.01514.93
7.2.210.0030.01415.05
7.2.200.0110.00414.77
7.2.190.0040.00814.92
7.2.180.0080.01014.96
7.2.170.0100.00714.82
7.2.160.0060.00814.74
7.2.150.0050.00816.60
7.2.140.0140.00516.82
7.2.130.0130.01016.85
7.2.120.0060.00816.73
7.2.110.0110.00716.73
7.2.100.0050.01016.86
7.2.90.0080.01116.71
7.2.80.0110.00416.84
7.2.70.0110.00916.50
7.2.60.0140.00516.68
7.2.50.0090.01016.81
7.2.40.0070.00816.66
7.2.30.0070.00716.78
7.2.20.0110.01016.70
7.2.10.0110.00916.70
7.2.00.0090.00716.61
7.1.330.0060.00915.47
7.1.320.0000.01115.55
7.1.310.0000.00815.63
7.1.300.0030.00615.67
7.1.290.0040.01115.63
7.1.280.0040.01115.76
7.1.270.0080.01015.71
7.1.260.0070.00915.71
7.1.250.0090.00415.70
7.1.240.0070.01015.75
7.1.230.0030.01015.75
7.1.220.0000.01415.65
7.1.210.0000.01315.59
7.1.200.0090.00615.88
7.1.190.0040.00815.67
7.1.180.0070.01015.43
7.1.170.0030.00615.74
7.1.160.0120.00015.73
7.1.150.0030.01215.65
7.1.140.0090.00615.70
7.1.130.0110.00315.80
7.1.120.0120.00615.45
7.1.110.0070.01015.75
7.1.100.0070.00715.82
7.1.90.0000.01215.66
7.1.80.0130.00015.69
7.1.70.0040.00415.92
7.1.60.0060.00315.76
7.1.50.0060.00615.61
7.1.40.0070.00715.65
7.1.30.0140.00015.41
7.1.20.0030.01015.72
7.1.10.0040.00815.59
7.1.00.0040.00415.71

preferences:
22.09 ms | 413 KiB | 14 Q