3v4l.org

run code in 300+ PHP versions simultaneously
<?php //interface I { // public function example(); //} class A { public function example(): int { } } class B extends A { public function example(): string { } // not compatible with A::example }

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)
8.1.40.0040.00617.31
8.0.170.0070.00616.79
7.1.10.0200.05022.21
7.1.00.0170.05322.42
7.0.150.0100.05721.88
7.0.140.0070.06721.86
7.0.130.0070.06021.85
7.0.120.0030.06021.87
7.0.110.0130.05321.90
7.0.100.0100.05721.92
7.0.90.0130.05321.90
7.0.80.0130.06721.93
7.0.70.0000.06322.05
7.0.60.0170.04721.94
7.0.50.0030.06721.88
7.0.40.0100.05321.84
7.0.30.0130.05321.84
7.0.20.0130.05021.82
7.0.10.0170.04721.85
7.0.00.0100.05721.87

preferences:
140.21 ms | 1394 KiB | 7 Q