3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class test{ abstract public function hi(): string; } class hello extends test { public function hi(): array { return []; } }

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)
5.6.130.0070.07718.27
5.6.120.0030.08021.10
5.6.110.0100.07721.11
5.6.100.0100.07720.99
5.6.90.0170.08021.00
5.6.80.0030.08020.41
5.5.290.0070.03717.96
5.5.280.0070.06020.88
5.5.270.0130.04320.79
5.5.260.0130.06020.96
5.5.250.0070.08020.78
5.5.240.0100.07020.27
5.4.450.0530.05319.64
5.4.440.0530.06319.56
5.4.430.0700.04319.16
5.4.420.0600.05019.59
5.4.410.0100.05319.46
5.4.400.0130.04719.10
5.4.390.0070.05719.29
5.4.380.0370.05019.05
5.4.370.0600.06019.11
5.4.360.0470.06319.00
5.4.350.0570.06019.11
5.4.340.0670.04719.25
5.4.320.0700.05318.93
5.4.310.0500.05319.28
5.4.300.0530.05319.14
5.4.290.0530.05319.07
5.4.280.0130.06019.27
5.4.270.0230.04719.36
5.4.260.0300.05019.36
5.4.250.0230.04319.02
5.4.240.0030.06719.22
5.4.230.0130.05718.95
5.4.220.0200.05719.27
5.4.210.0200.05319.27
5.4.200.0100.06719.25
5.4.190.0170.05018.99
5.4.180.0100.05319.36
5.4.170.0100.05719.27
5.4.160.0530.06319.00
5.4.150.0570.05719.23
5.4.140.0730.05016.31
5.4.130.0600.04716.55
5.4.120.0500.06016.55
5.4.110.0130.05016.25
5.4.100.0130.04716.20
5.4.90.0130.05016.18
5.4.80.0700.04016.50
5.4.70.0300.04316.18
5.4.60.0170.06716.56
5.4.50.0000.03316.51
5.4.40.0230.05016.43
5.4.30.0200.04316.22
5.4.20.0230.03716.43
5.4.10.0200.05016.34

preferences:
142.97 ms | 1394 KiB | 7 Q