3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ function a(){ function b(){ global $var1; echo $var1; // there is no var1 in the global scope so nothing to echo } } } $a = new A; a->a(); a->a();

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.0330.07320.24
7.0.10.0070.09020.16
7.0.00.0030.09320.08
5.6.170.0270.08720.56
5.6.160.0030.07320.62
5.6.150.0070.06318.25
5.6.140.0070.07718.28
5.6.130.0030.06018.18
5.6.120.0170.07321.00
5.6.110.0070.06321.14
5.6.100.0070.04720.99
5.6.90.0070.07720.99
5.6.80.0030.08320.43
5.5.310.0370.07720.34
5.5.300.0100.07318.04
5.5.290.0030.04017.98
5.5.280.0030.06020.81
5.5.270.0030.08320.81
5.5.260.0170.08020.80
5.5.250.0030.08320.55
5.5.240.0230.07720.03

preferences:
33.66 ms | 400 KiB | 5 Q