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', ); array_multisort( array_map(fn($v) => str_contains($v, '/special/'), $array), array_keys($array), $array ); 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.0100.00717.99
8.5.20.0120.00719.29
8.5.10.0110.00816.71
8.5.00.0140.00820.06
8.4.180.0130.00919.67
8.4.170.0120.00922.42
8.4.160.0150.00623.81
8.4.150.0060.00617.71
8.4.140.0110.01017.37
8.4.130.0050.00418.78
8.4.120.0130.00724.10
8.4.110.0090.00522.75
8.4.100.0170.00417.43
8.4.90.0100.01020.80
8.4.80.0080.01117.66
8.4.70.0060.00319.22
8.4.60.0100.01017.73
8.4.50.0110.00919.32
8.4.40.0470.00317.13
8.4.30.0290.00317.40
8.4.20.0280.00917.50
8.4.10.0240.01417.19
8.3.300.0100.01020.79
8.3.290.0190.01018.18
8.3.280.0110.00918.45
8.3.270.0140.01016.64
8.3.260.0120.00716.59
8.3.250.0080.00918.82
8.3.240.0130.00617.20
8.3.230.0150.00416.49
8.3.220.0120.00719.02
8.3.210.0090.00916.52
8.3.200.0110.00616.51
8.3.190.0060.00216.80
8.3.180.0100.00716.74
8.3.170.0260.00316.71
8.3.160.0210.00016.65
8.3.150.0190.00316.19
8.3.140.0140.00916.47
8.3.130.0140.00616.13
8.3.120.0130.00716.21
8.3.110.0180.00416.35
8.3.100.0230.00016.40
8.3.90.0190.00316.16
8.3.80.0270.00016.17
8.3.70.0220.00616.77
8.3.60.0270.00416.25
8.3.50.0250.00016.25
8.3.40.0320.00617.14
8.3.30.0220.00617.24
8.3.20.0350.00317.14
8.3.10.0250.01117.30
8.3.00.0100.01317.42
8.2.300.0090.01118.12
8.2.290.0090.01016.74
8.2.280.0030.00418.48
8.2.270.0270.00616.29
8.2.260.0330.00516.41
8.2.250.0260.01216.33
8.2.240.0260.01116.48
8.2.230.0280.01016.43
8.2.220.0290.00916.38
8.2.210.0210.01716.50
8.2.200.0340.00416.23
8.2.190.0300.01016.45
8.2.180.0340.00316.74
8.2.170.0350.00617.72
8.2.160.0320.00417.48
8.2.150.0210.02117.65
8.2.140.0310.00917.40
8.2.130.0430.00317.58
8.2.120.0420.00317.45
8.2.110.0340.00617.64
8.2.100.0370.00717.63
8.2.90.0290.01117.53
8.2.80.0350.00817.36
8.2.70.0340.00617.30
8.2.60.0360.00317.52
8.2.50.0410.00317.19
8.2.40.0300.00717.47
8.2.30.0240.01117.55
8.2.20.0210.01217.60
8.2.10.0320.00317.33
8.2.00.0290.00917.16
8.1.340.0120.00717.45
8.1.320.0120.00717.82

preferences:
53.91 ms | 853 KiB | 5 Q