3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Point { public function __construct( private int $y, private int $x, private string $debug, ) {} } // Order is intended to be like ORDER BY x, y // Because the order properties are declared, it becomes ORDER BY y, x $data = [ new Point(3,1,'should be third'), new Point(1,1,'should be first'), new Point(1,2,'should be fourth'), new Point(2,1,'should be second'), ]; sort($data); print_r($data);

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.120.0120.00318.83
8.3.110.0030.00616.56
8.3.100.0200.00016.87
8.3.90.0340.01026.77
8.3.80.0070.00726.77
8.3.50.0000.00826.77
8.2.240.0090.00018.63
8.2.230.0030.00720.94
8.2.220.0000.01124.06
8.2.210.0060.01226.77
8.2.200.0120.00626.77
8.1.300.0100.01017.79
8.1.290.0110.00726.77

preferences:
27.98 ms | 403 KiB | 5 Q