3v4l.org

run code in 300+ PHP versions simultaneously
<?php class first { private $variable = 10; function get() { return &$variable; } } $first = new first(); $c = $first->get(); var_dump($first->get(), $c); $c = 15; var_dump($first->get(), $c);

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.0500.07020.24
7.0.10.0070.09020.23
7.0.00.0100.05020.24
5.6.170.0230.06320.50
5.6.160.0100.08320.48
5.6.150.0030.05018.18
5.6.140.0070.07718.28
5.6.130.0030.08018.18
5.6.120.0070.08721.14
5.6.110.0200.07021.14
5.6.100.0030.04021.01
5.6.90.0030.04320.97
5.6.80.0000.09020.36
5.5.310.0330.07720.30
5.5.300.0070.08717.92
5.5.290.0070.09017.94
5.5.280.0000.07720.74
5.5.270.0100.05720.95
5.5.260.0100.08320.88
5.5.250.0130.05720.68
5.5.240.0000.04320.19

preferences:
142.19 ms | 1394 KiB | 7 Q