3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = array( '/something/foo7', '/something/special/foo22', '/something/foo333', '/something/special/foo4', '/something/foo5', '/something/special/boo96', ); usort($array, fn($a, $b) => str_contains($a, '/special/') <=> str_contains($b, '/special/')); 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.5.30.0070.01017.87
8.5.20.0110.00719.23
8.5.10.0130.00616.82
8.5.00.0100.01320.09
8.4.180.0170.01120.60
8.4.170.0140.00722.49
8.4.160.0110.01123.81
8.4.150.0050.00216.84
8.4.140.0140.00717.38
8.4.130.0100.00917.97
8.4.120.0130.00820.31
8.4.110.0140.00718.82
8.4.100.0140.00518.70
8.4.90.0110.00920.45
8.4.80.0090.00418.73
8.4.70.0110.00617.80
8.4.60.0100.01017.83
8.4.50.0130.00717.51
8.4.40.0400.00917.26
8.4.30.0440.00317.45
8.4.20.0430.00717.61
8.4.10.0390.00917.71
8.3.300.0110.00920.58
8.3.290.0150.00918.45
8.3.280.0070.00516.29
8.3.270.0140.00616.83
8.3.260.0110.00916.43
8.3.250.0130.00518.86
8.3.240.0070.00816.53
8.3.230.0080.01016.64
8.3.220.0110.00818.93
8.3.210.0100.00816.56
8.3.200.0110.00917.21
8.3.190.0100.00816.75
8.3.180.0110.00716.37
8.3.170.0370.00716.44
8.3.160.0380.00716.42
8.3.150.0400.01116.27
8.3.140.0400.00616.33
8.3.130.0310.00016.55
8.3.120.0210.00716.30
8.3.110.0360.00016.61
8.3.100.0220.01616.36
8.3.90.0160.00516.40
8.3.80.0290.00016.36
8.3.70.0360.00316.79
8.3.60.0300.00816.61
8.3.50.0300.00416.23
8.3.40.0290.00617.30
8.3.30.0300.00817.39
8.3.20.0330.01017.31
8.3.10.0250.00716.95
8.3.00.0130.00717.20
8.2.300.0090.01218.23
8.2.290.0130.00618.70
8.2.280.0030.00516.78
8.2.270.0390.00316.24
8.2.260.0260.00616.48
8.2.250.0250.01616.50
8.2.240.0250.01316.44
8.2.230.0210.01816.26
8.2.220.0260.00916.78
8.2.210.0250.00516.65
8.2.200.0200.00316.36
8.2.190.0300.00916.52
8.2.180.0290.01016.72
8.2.170.0360.00717.40
8.2.160.0340.00617.37
8.2.150.0330.00917.54
8.2.140.0410.00317.26
8.2.130.0340.00817.04
8.2.120.0330.00717.52
8.2.110.0380.00317.37
8.2.100.0320.00717.51
8.2.90.0320.01217.14
8.2.80.0260.00417.37
8.2.70.0260.01317.39
8.2.60.0210.01717.29
8.2.50.0260.01317.50
8.2.40.0360.00017.66
8.2.30.0340.00317.54
8.2.20.0370.00017.47
8.2.10.0250.01117.43
8.2.00.0260.01117.39
8.1.340.0090.01117.80
8.1.320.0150.00515.98

preferences:
56.8 ms | 853 KiB | 5 Q