3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 5; $y = 10; function myTest() { $x, $y; $y = $x + $y; } myTest(); // run function echo $y; // output the new value for variable $y ?>

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.20.0200.05320.10
7.0.10.0030.04320.04
7.0.00.0100.08720.11
5.6.170.0200.04020.48
5.6.160.0030.04320.46
5.6.150.0070.07018.14
5.6.140.0100.08018.17
5.6.130.0070.04718.27
5.6.120.0100.03721.10
5.6.110.0030.08721.12
5.6.100.0070.04321.01
5.6.90.0030.05021.01
5.6.80.0030.08320.39
5.5.310.0230.04320.21
5.5.300.0100.07317.95
5.5.290.0030.06017.91
5.5.280.0030.08720.98
5.5.270.0130.07720.77
5.5.260.0170.06020.93
5.5.250.0100.07320.66
5.5.240.0030.04020.27

preferences:
138.11 ms | 1394 KiB | 7 Q