3v4l.org

run code in 300+ PHP versions simultaneously
<?php $closure = function (string $str) : int use (&$something) {}

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.0.00.0030.06720.11
5.6.160.0100.07020.46
5.6.150.0070.08018.14
5.6.140.0070.08018.18
5.6.130.0030.07018.28
5.6.120.0170.07320.90
5.6.110.0100.08021.09
5.6.100.0070.08720.98
5.6.90.0170.07320.95
5.6.80.0070.08020.40
5.5.300.0070.07717.92
5.5.290.0070.07717.95
5.5.280.0130.07720.97
5.5.270.0070.08720.75
5.5.260.0000.04320.93
5.5.250.0100.04720.49
5.5.240.0270.07320.15

preferences:
135.3 ms | 1394 KiB | 7 Q