3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ["4.0.1", "trunk", "branch", "4.1.0", "4.0.3"]; usort($array, fn($a, $b) => ctype_alpha($a . $b) ? $a <=> $b : version_compare($b, $a)); var_export($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.3.60.0030.01418.18
8.3.50.0120.00616.49
8.3.40.0070.01018.67
8.3.30.0160.00318.55
8.3.20.0030.00620.65
8.3.10.0040.00421.93
8.3.00.0020.00521.85
8.2.180.0140.00325.92
8.2.170.0100.00619.00
8.2.160.0170.00022.96
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00826.16
8.2.110.0090.00020.52
8.2.100.0060.00617.75
8.2.90.0030.00617.63
8.2.80.0000.00818.84
8.2.70.0030.00517.50
8.2.60.0000.00817.63
8.2.50.0040.00417.55
8.2.40.0040.00418.34
8.2.30.0000.00718.17
8.2.20.0070.00018.11
8.2.10.0040.00419.37
8.2.00.0040.00419.24
8.1.280.0060.00925.92
8.1.270.0110.00422.44
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0070.00319.26
8.1.230.0090.00319.01
8.1.220.0000.00818.41
8.1.210.0000.00818.77
8.1.200.0000.00917.35
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0030.00518.64
8.1.160.0050.00218.76
8.1.150.0040.00419.05
8.1.140.0040.00420.72
8.1.130.0000.00720.12
8.1.120.0040.00417.52
8.1.110.0030.00417.50
8.1.100.0040.00417.50
8.1.90.0070.00017.39
8.1.80.0080.00017.36
8.1.70.0040.00717.48
8.1.60.0040.00417.60
8.1.50.0050.00217.54
8.1.40.0030.00717.50
8.1.30.0040.00417.50
8.1.20.0030.00617.58
8.1.10.0040.00417.52
8.1.00.0070.00417.50
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.48
8.0.270.0000.00917.91
8.0.260.0070.00020.05
8.0.250.0030.00316.96
8.0.240.0050.00516.98
8.0.230.0040.00416.91
8.0.220.0030.00316.77
8.0.210.0040.00416.89
8.0.200.0080.00016.80
8.0.190.0030.00316.93
8.0.180.0040.00416.91
8.0.170.0060.00316.87
8.0.160.0040.00416.89
8.0.150.0030.00316.90
8.0.140.0000.00716.80
8.0.130.0000.00613.32
8.0.120.0040.00416.89
8.0.110.0070.00016.76
8.0.100.0070.00016.82
8.0.90.0050.00216.70
8.0.80.0050.01116.87
8.0.70.0040.00416.82
8.0.60.0040.00416.75
8.0.50.0040.00416.88
8.0.30.0080.00817.27
8.0.20.0120.00917.16
8.0.10.0030.00517.02
8.0.00.0140.00316.88
7.4.330.0000.00616.70
7.4.320.0070.00016.43
7.4.300.0000.00616.60
7.4.290.0070.00016.38
7.4.280.0030.00516.58
7.4.270.0000.00716.65
7.4.260.0000.00613.22
7.4.250.0070.00016.48
7.4.240.0050.00316.46
7.4.230.0040.00416.60
7.4.220.0040.00416.59
7.4.210.0080.01216.59
7.4.200.0030.00316.58
7.4.130.0070.01116.55
7.4.120.0110.00516.55
7.4.110.0180.00716.50
7.4.100.0030.01316.32
7.4.90.0090.00816.31
7.4.80.0090.00819.39
7.4.70.0170.00316.56
7.4.60.0120.00916.53
7.4.50.0110.00716.26
7.4.40.0060.00916.39
7.4.10.0180.00214.99
7.4.00.0140.00714.95
7.3.330.0050.00316.18
7.3.320.0030.00313.21
7.3.310.0070.00016.21
7.3.300.0040.00416.06
7.3.290.0070.00816.20
7.3.280.0040.01116.11
7.3.260.0070.01116.28
7.3.230.0150.00416.38
7.3.210.0120.00616.19
7.3.200.0090.01316.21
7.3.190.0100.01016.21
7.3.180.0060.00916.12
7.3.170.0030.01416.34
7.3.160.0100.00716.14
7.3.130.0100.00514.76
7.3.120.0170.00714.42
7.3.110.0120.00314.57
7.3.100.0140.00214.86
7.3.90.0050.01214.65
7.3.80.0080.00514.64
7.3.70.0070.00714.53
7.3.60.0060.00914.42
7.3.50.0150.00414.38
7.3.40.0070.00714.66
7.3.30.0060.00814.25
7.3.20.0070.01014.56
7.3.10.0080.00814.37
7.3.00.0080.00714.32
7.2.330.0060.01116.50
7.2.320.0200.04316.38
7.2.310.0040.01416.09
7.2.300.0170.00316.24
7.2.290.0130.00316.50
7.2.260.0090.01214.99
7.2.250.0130.00314.65
7.2.240.0030.01714.61
7.2.230.0100.00714.59
7.2.220.0050.01014.61
7.2.210.0040.00914.57
7.2.200.0030.01314.85
7.2.190.0050.00814.55
7.2.180.0050.00914.49
7.2.170.0080.00614.66
7.2.160.0030.01314.71
7.2.150.0110.00514.65
7.2.140.0120.00614.33
7.2.130.0100.01014.55
7.2.120.0040.01214.62
7.2.110.0110.01114.58
7.2.100.0040.01214.49
7.2.90.0050.01014.75
7.2.80.0060.00914.68
7.2.70.0060.01314.93
7.2.60.0080.00814.80
7.2.50.0070.00714.56
7.2.40.0110.00314.77
7.2.30.0150.00314.87
7.2.20.0160.01314.71
7.2.10.0110.00414.95
7.2.00.0140.00314.83

preferences:
89.27 ms | 400 KiB | 5 Q