3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function __construct(){ $this->foo = 10; } } $bla = new class(){ function __set($var, $val){ var_dump($var, $val); } }; (function(){ return $this->__construct(); }->bindTo($bla, '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.0300.05320.24
7.0.10.0100.08720.16
7.0.00.0030.04720.19
5.6.170.0400.07020.43
5.6.160.0000.05320.71
5.6.150.0030.08318.18
5.6.140.0070.04018.17
5.6.130.0070.08018.15
5.6.120.0100.05021.01
5.6.110.0100.08021.01
5.6.100.0100.04320.99
5.6.90.0070.08721.11
5.6.80.0170.06720.54
5.5.310.0200.04320.35
5.5.300.0070.05317.97
5.5.290.0030.04317.95
5.5.280.0100.07020.77
5.5.270.0170.07320.87
5.5.260.0100.07320.88
5.5.250.0200.07020.61
5.5.240.0230.06320.26

preferences:
146.29 ms | 1394 KiB | 7 Q