3v4l.org

run code in 300+ PHP versions simultaneously
<?php $expected = array_flip(range('l', 'a')); $array = array_fill(0, 100, $expected); array_walk($array, 'krsort'); var_export( array_filter( $array, fn($row) => $row !== $expected // only keep rows which are sorted incorrectly ) );

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.00.0100.01120.00
8.4.150.0020.00114.05
8.4.140.0130.00817.76
8.4.130.0080.00918.73
8.4.120.0130.00620.19
8.4.110.0060.00317.82
8.4.100.0120.00917.80
8.4.90.0130.00720.71
8.4.80.0030.00618.88
8.4.70.0150.00520.86
8.4.60.0070.00220.64
8.4.50.0150.00518.64
8.4.40.0070.01417.71
8.4.30.0390.00917.31
8.4.20.0450.00617.30
8.4.10.0330.00417.59
8.3.280.0130.00818.43
8.3.270.0070.01316.58
8.3.260.0090.01016.54
8.3.250.0130.00516.58
8.3.240.0050.00416.64
8.3.230.0050.00516.54
8.3.220.0110.00818.87
8.3.210.0090.01016.64
8.3.200.0100.01016.35
8.3.190.0060.00617.20
8.3.180.0110.00719.08
8.3.170.0060.01217.32
8.3.160.0280.01016.27
8.3.150.0360.01116.71
8.3.140.0360.01116.41
8.3.130.0300.01116.19
8.3.120.0080.01116.62
8.3.110.0300.00616.50
8.3.100.0400.00316.33
8.3.90.0310.01316.39
8.3.80.0360.01116.66
8.3.70.0230.01416.43
8.3.60.0360.00716.51
8.3.50.0160.00716.64
8.3.40.0260.01317.19
8.3.30.0360.00317.50
8.3.20.0250.01317.24
8.3.10.0160.01317.45
8.3.00.0110.00817.31
8.2.290.0110.00720.70
8.2.280.0120.00619.96
8.2.270.0210.01416.55
8.2.260.0300.00916.33
8.2.250.0260.01216.65
8.2.240.0360.00316.22
8.2.230.0300.00916.62
8.2.220.0290.01016.35
8.2.210.0220.01616.32
8.2.200.0290.01016.39
8.2.190.0230.01516.21
8.2.180.0210.01716.51
8.2.170.0530.00617.52
8.2.160.0450.00317.50
8.2.150.0360.00417.66
8.2.140.0320.00917.26
8.2.130.0330.00717.52
8.2.120.0260.01517.46
8.2.110.0270.01317.46
8.2.100.0340.00317.66
8.2.90.0360.00317.68
8.2.80.0350.00317.25
8.2.70.0350.00617.34
8.2.60.0300.00717.38
8.2.50.0300.00817.35
8.2.40.0270.00917.28
8.2.30.0300.00717.51
8.2.20.0360.00417.46
8.2.10.0290.00317.37
8.2.00.0180.01117.51
8.1.320.0120.00817.89

preferences:
49.51 ms | 403 KiB | 5 Q