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 $a; } 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.0030.09020.20
7.0.00.0070.06720.32
5.6.160.0070.06720.47
5.6.150.0100.04718.25
5.6.140.0130.07318.14
5.6.130.0100.07018.15
5.6.120.0130.05321.11
5.6.110.0130.07721.00
5.6.100.0030.09020.96
5.6.90.0070.08021.10
5.6.80.0030.04020.30
5.5.300.0030.06718.08
5.5.290.0070.08018.09
5.5.280.0030.04020.88
5.5.270.0030.06720.79
5.5.260.0230.06720.88
5.5.250.0000.04320.71
5.5.240.0200.05720.34

preferences:
135.7 ms | 1386 KiB | 7 Q