3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(1, 3, 6, 4, 1, 2) $new = sort($arr); var_dump($new);

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)
7.2.30.0090.00919.19
7.2.20.0070.01119.32
7.2.10.0090.01019.55
7.2.00.0080.00919.41
7.1.150.0100.01118.03
7.1.140.0070.01018.09
7.1.130.0090.00818.26
7.1.120.0090.01217.96
7.1.110.0050.01117.74
7.1.100.0090.01117.70
7.1.90.0080.01017.37
7.1.80.0070.00917.98
7.1.70.0030.01316.80
7.1.60.0220.01334.92
7.1.50.0330.01434.80
7.1.40.0260.01034.41
7.1.30.0330.01734.35
7.1.20.0300.01534.36
7.1.10.0080.00716.32
7.1.00.0040.01116.41

preferences:
143.47 ms | 1394 KiB | 7 Q