3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php function compareByLength() { $a="jani"; $b="kavi"; $aa=strlen($a) <=> strlen($b); //echo "$a Refsnes.<br>"; echo $aa; } compareByLength();

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.10.0070.08320.26
7.0.00.0100.04720.07
5.6.160.0030.06720.54
5.6.150.0070.08318.23
5.6.140.0130.08018.27
5.6.130.0000.05318.18
5.6.120.0170.03320.98
5.6.110.0070.08321.14
5.6.100.0100.08321.00
5.6.90.0130.07320.96
5.6.80.0030.04020.50
5.5.300.0100.07017.98
5.5.290.0030.05018.09
5.5.280.0130.03020.76
5.5.270.0070.06020.96
5.5.260.0130.08720.86
5.5.250.0070.04320.49
5.5.240.0100.07720.23

preferences:
141.72 ms | 1386 KiB | 7 Q