3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <body> <?php echo "5 + 10 = ".sum(5,10 ."<br>"; echo "7 + 13 = ".sum(7,13)."<br>"; echo "2 + 4 = ".sum(2,4); function sum($x, $y) { $z = $x + $y; return $z; } ?> </body> </html>

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.04320.14
5.6.160.0030.05320.43
5.6.150.0070.06718.18
5.6.140.0130.07018.18
5.6.130.0070.06318.25
5.6.120.0070.08321.02
5.6.110.0170.05321.00
5.6.100.0030.08721.00
5.6.90.0200.07020.99
5.6.80.0070.08320.30
5.5.300.0170.04318.00
5.5.290.0070.08017.98
5.5.280.0070.08720.73
5.5.270.0100.04020.81
5.5.260.0130.07720.63
5.5.250.0070.08320.50
5.5.240.0200.07720.03

preferences:
141.84 ms | 1394 KiB | 7 Q