3v4l.org

run code in 300+ PHP versions simultaneously
<?php class B { protected $x = 'x'; function foo() { return $this->x; } } class C extends B { private $x = 'y'; function foo() { return $this->x . parent::foo(); } } $c = new C; var_export($c->foo());

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.2.40.2100.01217.94
7.2.30.1790.00817.56
7.2.20.1780.00917.80
7.2.10.1810.00817.83
7.2.00.1930.00717.63
7.1.160.1680.00916.54
7.1.150.1840.00816.70
7.1.140.1770.01016.74
7.1.130.2660.00616.54
7.1.120.1790.00716.63
7.1.110.1760.00615.95
7.1.100.1950.01015.96
7.1.90.1840.00615.91
7.1.80.1790.00816.00
7.1.70.1730.00715.19
7.1.60.1830.01133.15
7.1.50.2310.01432.73
7.1.40.3160.01432.54
7.1.30.3010.00832.70
7.1.20.3170.01532.55
7.1.10.3180.00714.42
7.1.00.2840.00714.50

preferences:
127.52 ms | 1398 KiB | 7 Q