3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ['name' => 'foo'], ]; usort($array, function ($a, $b) { return this_method_does_not_exist(); }); echo 'after calling usort:'.PHP_EOL.PHP_EOL; var_dump($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.4.120.0060.00320.54
8.4.110.0120.00822.22
8.4.100.0120.00917.65
8.4.90.0090.01220.42
8.4.80.0100.00517.61
8.4.70.0110.00417.70
8.4.60.0180.00417.79
8.4.50.0180.00417.58
8.4.40.0200.00417.53
8.4.30.0190.00417.54
8.4.20.0230.00417.48
8.4.10.0180.00517.58
8.3.250.0120.00718.85
8.3.240.0110.00816.63
8.3.230.0160.00316.09
8.3.220.0040.00616.37
8.3.210.0050.00416.33
8.3.200.0210.00316.24
8.3.190.0180.00516.61
8.3.180.0060.00416.55
8.3.170.0160.00516.48
8.3.160.0210.00316.54
8.3.150.0170.00616.31
8.3.140.0170.00616.49
8.3.130.0140.00616.34
8.3.120.0140.00616.44
8.3.110.0150.00516.38
8.3.100.0170.00516.54
8.3.90.0160.00715.98
8.3.80.0170.00616.61
8.3.70.0150.00716.63
8.3.60.0170.00716.49
8.3.50.0060.00516.66
8.3.40.0150.00317.34
8.3.30.0130.00517.16
8.3.20.0150.00517.20
8.3.10.0110.00817.26
8.3.00.0030.00717.27
8.2.290.0170.00216.23
8.2.280.0120.00616.60
8.2.270.0180.00316.61
8.2.260.0160.00516.29
8.2.250.0150.00516.36
8.2.240.0150.00516.45
8.2.230.0140.00516.38
8.2.220.0140.00416.42
8.2.210.0140.00416.39
8.2.200.0140.00516.43
8.2.190.0140.00516.64
8.2.180.0150.00416.37
8.2.170.0190.00317.42
8.2.160.0150.00417.44
8.2.150.0060.00317.70
8.2.140.0060.00317.67
8.2.130.0050.00517.55
8.2.120.0060.00417.34
8.2.110.0080.00117.68
8.2.100.0040.00517.66
8.2.90.0050.00517.57
8.2.80.0090.00217.44
8.2.70.0070.00217.52
8.2.60.0040.00617.29
8.2.50.0060.00317.36
8.2.40.0060.00317.52
8.2.30.0050.00417.39
8.2.20.0070.00217.45
8.2.10.0050.00517.27
8.2.00.0070.00217.45

preferences:
26.72 ms | 403 KiB | 5 Q