3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyTable { private name; private id; public function __set($p, $v) { # $this->{$p} = $v; return $this->$p(); } private function name() { return 'x'; } } $oMyTable = new MyTable(); $o = $oMyTable->name = 'Felipe'; var_dump($o); $o = $oMyTable->id = '2'; var_dump($o); ?>

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)
5.4.240.0270.03319.00
5.4.230.0230.04318.94
5.4.220.0330.05718.98
5.4.210.0670.05718.99
5.4.200.0330.03019.07
5.4.190.0370.04718.98
5.4.180.0370.03319.12
5.4.170.0430.05719.23
5.4.160.0300.07319.22
5.4.150.0330.07319.16
5.4.140.0230.04316.39
5.4.130.0300.05016.30
5.4.120.0270.04316.50
5.4.110.0400.03316.55
5.4.100.0300.05316.35
5.4.90.0270.04316.19
5.4.80.0300.04716.57
5.4.70.0400.07316.55
5.4.60.0300.06716.52
5.4.50.0230.04016.52
5.4.40.0200.04016.27
5.4.30.0300.03316.24
5.4.20.0330.03016.53
5.4.10.0430.05716.38
5.4.00.0230.04015.80
5.3.280.0270.04014.50
5.3.270.0370.06314.60
5.3.260.0470.04014.75
5.3.250.0370.07014.57
5.3.240.0330.06714.50
5.3.230.0330.04714.56
5.3.220.0270.06014.59
5.3.210.0270.05314.62
5.3.200.0400.03314.53
5.3.190.0300.05714.53
5.3.180.0330.05714.79
5.3.170.0400.06014.68
5.3.160.0430.05714.68
5.3.150.0400.06314.67
5.3.140.0270.04014.45
5.3.130.0330.04314.55
5.3.120.0370.06314.61
5.3.110.0230.04014.45
5.3.100.0230.05014.12
5.3.90.0300.03314.13
5.3.80.0230.04014.09
5.3.70.0270.04314.17
5.3.60.0270.06314.01
5.3.50.0170.04013.85
5.3.40.0270.03713.84
5.3.30.0170.04013.95
5.3.20.0230.03013.69
5.3.10.0200.03713.65
5.3.00.0200.03713.68

preferences:
146.63 ms | 1394 KiB | 7 Q