3v4l.org

run code in 300+ PHP versions simultaneously
<?php class FooParent {} class FooChild extends FooParent {}; interface BarInterface { public function getProvider(): FooParent; } class BarImplementation { public function getProvider(): FooChild { return new FooChild(); } } $a = new BarImplementation(); var_dump($a->getProvider());

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.130.0060.00318.40
8.3.120.0120.00320.48
8.3.110.0170.00316.38
8.3.100.0030.00524.06
8.3.90.0040.00426.77
8.3.80.0040.00418.18
8.3.70.0100.00716.50
8.3.60.0090.00618.06
8.3.50.0110.00718.25
8.3.40.0070.01121.97
8.3.30.0090.00618.58
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.250.0100.00618.49
8.2.240.0110.00418.97
8.2.230.0030.00620.94
8.2.220.0000.00737.54
8.2.210.0070.00026.77
8.2.200.0120.00016.50
8.2.190.0080.00818.14
8.2.180.0040.01116.63
8.2.170.0040.01118.73
8.2.160.0100.00322.96
8.2.150.0000.00725.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0060.00322.32
8.2.100.0030.01017.72
8.2.90.0030.00518.22
8.2.80.0040.00417.97
8.2.70.0040.00417.37
8.2.60.0050.00317.50
8.2.50.0040.00417.63
8.2.40.0040.00419.35
8.2.30.0120.00217.68
8.2.20.0180.00017.50
8.2.10.0080.00617.68
8.2.00.0000.01317.67
8.1.300.0060.00320.31
8.1.290.0100.00030.84
8.1.280.0140.00725.92
8.1.270.0000.00824.66
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0050.00523.96
8.1.230.0070.00420.98
8.1.220.0050.00317.74
8.1.210.0050.00518.77
8.1.200.0000.00817.51
8.1.190.0050.00317.25
8.1.180.0000.00718.10
8.1.170.0080.00017.62
8.1.160.0110.00017.40
8.1.150.0100.00317.38
8.1.140.0040.00817.12
8.1.130.0100.00417.13
8.1.120.0140.00017.11
8.1.110.0100.00317.32
8.1.100.0100.00517.24
8.1.90.0100.00317.36
8.1.80.0140.00017.40
8.1.70.0120.00017.44
8.1.60.0100.00617.23
8.1.50.0030.01017.47
8.1.40.0050.00817.60
8.1.30.0110.00417.13
8.1.20.0050.00917.57
8.1.10.0150.00017.42
8.1.00.0090.00517.38
8.0.300.0030.00620.10
8.0.290.0030.00816.58
8.0.280.0090.00716.73
8.0.270.0100.00516.76
8.0.260.0100.00316.79
8.0.250.0120.00416.73
8.0.240.0110.00216.73
8.0.230.0130.00416.75
8.0.220.0060.00616.73
8.0.210.0060.00816.73
8.0.200.0080.00816.83
8.0.190.0150.00316.86
8.0.180.0100.00616.73
8.0.170.0110.00216.73
8.0.160.0090.00516.73
8.0.150.0120.00316.73
8.0.140.0060.00916.73
8.0.130.0070.00616.73
8.0.120.0120.00016.73
8.0.110.0120.00416.73
8.0.100.0080.00616.73
8.0.90.0070.00516.73
8.0.80.0090.00416.73
8.0.70.0110.00316.73
8.0.60.0080.00416.73
8.0.50.0090.00616.73
8.0.30.0150.00016.73
8.0.20.0110.00416.73
8.0.10.0090.00616.73

preferences:
28.2 ms | 403 KiB | 5 Q