3v4l.org

run code in 300+ PHP versions simultaneously
<?php Interface wut { public function foo( string $yolo ) { } } class dude implements wut { public function foo ( int $yolo = 2) { echo $yolo; } } $x = new dude(); $x->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.1.70.0090.00717.03
7.1.60.0280.02034.95
7.1.50.0240.01832.99
7.1.40.0240.01532.59
7.1.30.0160.00832.53
7.1.20.0230.01732.86
7.1.10.0030.01416.42
7.1.00.0190.00616.31
7.0.200.0020.01716.76
7.0.190.0070.01216.25
7.0.180.0220.00814.29
7.0.170.0110.02214.16
7.0.160.0030.01516.13
7.0.150.0030.01416.04
7.0.140.0100.01216.27
7.0.130.0070.01116.20
7.0.120.0090.01216.18
7.0.110.0000.01516.03
7.0.100.0150.01116.13
7.0.90.0080.01116.14
7.0.80.0060.01416.07
7.0.70.0040.01516.19
7.0.60.0060.00515.98
7.0.50.0080.00916.13
7.0.40.0070.01016.36
7.0.30.0100.00816.54
7.0.20.0030.01416.31
7.0.10.0060.01316.34
7.0.00.0020.00316.22

preferences:
137.01 ms | 935 KiB | 8 Q