3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Asd { public function qwerty(int $q): array; } class Qwerty implements Asd { public function qwerty($q): array { return 123; } }

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.3.60.0130.00718.23
8.3.50.0100.00318.05
8.3.40.0130.00718.54
8.3.30.0110.00418.46
8.3.20.0050.00220.16
8.3.10.0000.00820.40
8.3.00.0080.00023.61
8.2.180.0110.01125.92
8.2.170.0060.00919.01
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0040.00421.01
8.2.120.0040.00426.35
8.2.110.0030.00622.25
8.2.100.0100.00018.66
8.1.280.0070.00725.92
8.1.270.0050.00324.66
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0030.00718.55
8.1.230.0000.00918.47
7.0.20.0330.06720.21
7.0.10.0100.06020.05
7.0.00.0030.05020.32
5.6.170.0270.04720.44
5.6.160.0070.03720.57
5.6.150.0170.07018.29
5.6.140.0000.08718.29
5.6.130.0130.06318.17
5.6.120.0070.04021.12
5.6.110.0070.09021.00
5.6.100.0070.09020.98
5.6.90.0070.05020.98
5.6.80.0070.04020.53
5.5.310.0300.07020.32
5.5.300.0030.05317.98
5.5.290.0100.07318.04
5.5.280.0070.08320.77
5.5.270.0030.04020.73
5.5.260.0030.05020.68
5.5.250.0100.08320.71
5.5.240.0030.04020.13

preferences:
41.57 ms | 400 KiB | 5 Q