3v4l.org

run code in 300+ PHP versions simultaneously
<?php class String { const THING = __CLASS__ . __LINE__; public 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.0400.06720.38
7.0.10.0030.04720.02
7.0.00.0000.04320.01
5.6.280.0000.07020.87
5.6.210.0230.07020.47
5.6.200.0070.05718.28
5.6.190.0170.04020.48
5.6.180.0300.06320.68
5.6.170.0170.05320.58
5.6.160.0070.04320.61
5.6.150.0000.04318.22
5.6.140.0000.04718.17
5.6.130.0030.04018.11
5.6.120.0030.05021.02
5.6.110.0130.04721.09
5.6.100.0070.04321.14
5.6.90.0170.06021.12
5.6.80.0070.07720.49
5.5.310.0430.06720.26
5.5.300.0070.06717.98
5.5.290.0030.06017.95
5.5.280.0200.07020.77
5.5.270.0130.05320.84
5.5.260.0030.09020.96
5.5.250.0070.07020.75
5.5.240.0230.07020.16

preferences:
134.29 ms | 1394 KiB | 7 Q