3v4l.org

run code in 300+ PHP versions simultaneously
<?php class IF { private $class = __CLASS__ . __LINE__; private function switch() {return $this->class;} } $c = (new IF)->switch();

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.0230.08720.30
7.0.10.0130.08020.22
7.0.00.0000.04720.24
5.6.170.0270.04020.56
5.6.160.0030.04720.44
5.6.150.0100.05318.12
5.6.140.0070.07718.29
5.6.130.0030.04018.14
5.6.120.0200.07321.11
5.6.110.0100.07721.11
5.6.100.0170.07321.13
5.6.90.0100.05021.05
5.6.80.0130.07020.35
5.5.310.0300.05720.27
5.5.300.0000.09017.91
5.5.290.0300.04018.08
5.5.280.0070.03720.95
5.5.270.0070.07020.67
5.5.260.0130.08020.79
5.5.250.0070.07020.67
5.5.240.0200.08320.16

preferences:
140.63 ms | 1394 KiB | 7 Q