3v4l.org

run code in 300+ PHP versions simultaneously
<?php class String { const THING = __CLASS__ . __LINE__; private function int() {return self::THING;} } $c = (new String)->int();

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.05720.04
7.0.10.0100.06320.12
7.0.00.0000.04720.09
5.6.170.0270.06020.46
5.6.160.0130.03720.71
5.6.150.0000.05318.25
5.6.140.0130.06318.12
5.6.130.0030.04318.23
5.6.120.0100.08021.03
5.6.110.0100.06320.98
5.6.100.0100.05020.89
5.6.90.0100.08020.93
5.6.80.0000.06320.29
5.5.310.0270.04720.23
5.5.300.0100.08018.03
5.5.290.0170.03717.94
5.5.280.0030.05320.68
5.5.270.0030.07320.84
5.5.260.0000.07720.75
5.5.250.0100.07320.66
5.5.240.0470.06020.36

preferences:
132.71 ms | 1398 KiB | 7 Q