3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['111', '22', '3', '4444']; sort($a, PREG_SPLIT_NO_EMPTY); 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.4.20.0080.00817.99
8.4.10.0100.00721.90
8.3.150.0120.00617.20
8.3.140.0080.00016.60
8.3.130.0070.00318.42
8.3.120.0040.01120.57
8.3.110.0080.00020.94
8.3.100.0060.00316.36
8.3.90.0060.00926.77
8.3.80.0090.00016.60
8.3.70.0150.00316.58
8.3.60.0090.01218.30
8.3.50.0030.01419.97
8.3.40.0100.00719.70
8.3.30.0110.00418.54
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.270.0140.00017.13
8.2.260.0150.00316.52
8.2.250.0080.00016.50
8.2.240.0060.00317.08
8.2.230.0120.00022.58
8.2.220.0120.00024.06
8.2.210.0110.00326.77
8.2.200.0110.00016.50
8.2.190.0070.01016.58
8.2.180.0110.00425.92
8.2.170.0150.00318.79
8.2.160.0040.01122.96
8.2.150.0080.00025.66
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0000.00726.16
8.2.110.0000.00922.23
8.2.100.0090.00317.78
8.2.90.0030.00517.63
8.2.80.0030.00518.80
8.2.70.0000.00817.38
8.2.60.0090.00017.91
8.2.50.0030.00618.07
8.2.40.0070.00018.13
8.2.30.0040.00417.94
8.2.20.0040.00419.05
8.2.10.0040.00417.91
8.2.00.0050.00319.05
8.1.310.0080.00017.95
8.1.300.0060.00919.99
8.1.290.0090.00030.84
8.1.280.0140.00025.92
8.1.270.0070.00024.66
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0030.00723.84
8.1.230.0080.00320.95
8.1.220.0020.00517.74
8.1.210.0000.00818.77
8.1.200.0090.00017.23
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0060.00318.36
8.1.160.0040.00418.88
8.1.150.0000.00718.61
8.1.140.0000.00717.38
8.1.130.0070.00019.09
8.1.120.0000.00717.29
8.1.110.0050.00317.44
8.1.100.0020.00517.44
8.1.90.0060.00517.33
8.1.80.0140.00317.29
8.1.70.0090.00717.30
8.1.60.0160.00217.45
8.1.50.0130.00617.42
8.1.40.0090.00917.40
8.1.30.0150.00417.44
8.1.20.0130.00517.49
8.1.10.0050.01317.47
8.1.00.0140.00517.37
8.0.300.0040.00418.93
8.0.290.0000.00816.58
8.0.280.0030.00318.39
8.0.270.0000.00816.74
8.0.260.0030.00316.67
8.0.250.0000.00716.93
8.0.240.0060.00316.76
8.0.230.0040.00416.93
8.0.220.0090.00616.84
8.0.210.0150.00116.78
8.0.200.0130.00316.85
8.0.190.0140.00316.85
8.0.180.0140.00216.75
8.0.170.0120.00316.85
8.0.160.0140.00216.80
8.0.150.0100.00516.71
8.0.140.0090.00516.77
8.0.130.0090.00716.74
8.0.120.0120.00316.70
8.0.110.0110.00416.75
8.0.100.0050.01016.72
8.0.90.0100.00616.81
8.0.80.0090.00716.74
8.0.70.0090.00716.69
8.0.60.0140.00316.63
8.0.50.0110.00416.70
8.0.30.0110.00516.74
8.0.20.0170.00016.85
8.0.10.0150.00216.92
7.4.330.0000.00516.67
7.4.320.0030.00316.48
7.4.300.0130.00516.45
7.4.290.0140.00416.41
7.4.280.0150.00216.47
7.4.270.0130.00416.42
7.4.260.0110.00516.45
7.4.250.0120.00516.54
7.4.240.0090.00716.42
7.4.230.0120.00516.44
7.4.220.0110.00416.47
7.4.210.0100.00516.47
7.4.200.0120.00416.35
7.4.190.0080.00616.46
7.4.180.0060.00916.56
7.4.160.0100.00516.44
7.4.150.0080.00716.46
7.4.140.0120.00316.29
7.4.130.0110.00416.41
7.4.120.0100.00416.34
7.4.110.0090.00616.29
7.4.100.0060.00916.39
7.4.90.0140.00116.40
7.4.80.0110.00416.24
7.4.70.0150.00016.35
7.4.60.0110.00316.30
7.4.50.0090.00616.23
7.4.40.0110.00416.24
7.4.30.0120.00316.39
7.4.20.0100.00516.29
7.4.10.0110.00416.36
7.4.00.0120.00416.25
5.5.380.0060.00615.72
5.3.290.0030.00614.33
5.2.170.0010.00714.33
5.1.60.0060.00114.33
5.0.50.0040.00114.33
4.4.90.0040.00014.33
4.3.110.0000.00314.33

preferences:
67.78 ms | 403 KiB | 5 Q