3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Fruit { protected $mType = ' '; protected $mColor = 'Green'; public function getType() { return $this->mType; } final public function getColor() { return $this->mColor; }} final class Apple extends Fruit { protected $mType = ' '; protected $mColor = 'Red'; final public function getColor() { return "Apple:".$this->mColor; } } $generalFruit = new Fruit(); $myApple = new Appler(); echo $generalFruit->getType().":".$generalFruit->getColor() ." ".$myAplle->getType().":".$myApple->getColor();

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.270.0230.05719.31
5.4.260.0400.07319.06
5.4.250.0300.03719.16
5.4.240.0170.04719.16
5.4.230.0230.06718.85
5.4.220.0170.06019.08
5.4.210.0130.04319.31
5.4.200.0200.04719.08
5.4.190.0230.06318.97
5.4.180.0100.05019.23
5.4.170.0200.04719.08
5.4.160.0270.06019.20
5.4.150.0230.06718.83
5.4.140.0270.05316.41
5.4.130.0300.04716.50
5.4.120.0300.05716.56
5.4.110.0230.04316.24
5.4.100.0270.02716.46
5.4.90.0230.05016.46
5.4.80.0200.06716.57
5.4.70.0130.05016.60
5.4.60.0230.05716.33
5.4.50.0170.04016.55
5.4.40.0230.04316.43
5.4.30.0200.05316.16
5.4.20.0230.06016.42
5.4.10.0200.05716.51
5.4.00.0270.06715.96
5.3.280.0200.04714.51
5.3.270.0100.04314.61
5.3.260.0300.07014.51
5.3.250.0270.06714.72
5.3.240.0230.05714.58
5.3.230.0270.07014.57
5.3.220.0300.06714.65
5.3.210.0300.06714.54
5.3.200.0200.07714.64
5.3.190.0200.04714.57
5.3.180.0300.05714.55
5.3.170.0270.06014.47
5.3.160.0200.07314.57
5.3.150.0200.06314.48
5.3.140.0200.03314.56
5.3.130.0230.04314.77
5.3.120.0200.04314.45
5.3.110.0170.06714.63
5.3.100.0270.07314.26
5.3.90.0270.04713.94
5.3.80.0230.06314.02
5.3.70.0100.05714.00
5.3.60.0170.05313.94
5.3.50.0100.04713.96
5.3.40.0170.04013.93
5.3.30.0200.07313.96
5.3.20.0100.04313.62
5.3.10.0300.04713.70
5.3.00.0130.05013.71

preferences:
139.48 ms | 1386 KiB | 7 Q