3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Fooable { } class Foo implements Fooable {} abstract class Bar { public function dump(Fooable $object) { var_dump($object); } } class Baz extends Bar { public function dump(Foo $object) { var_dump($object); } } (new Baz)->dump(new 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)
8.3.60.0030.01316.61
8.3.50.0120.00318.18
8.3.40.0040.01118.84
8.3.30.0110.00718.58
8.3.20.0080.00021.95
8.3.10.0090.00021.73
8.3.00.0000.00819.67
8.2.180.0150.00618.41
8.2.170.0120.00322.96
8.2.160.0120.00320.52
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0000.00819.34
8.2.120.0080.00026.35
8.2.110.0040.00719.27
8.2.100.0080.00317.78
8.2.90.0040.00417.71
8.2.80.0040.00418.00
8.2.70.0030.00517.93
8.2.60.0080.00017.93
8.2.50.0050.00318.10
8.2.40.0000.00720.26
8.2.30.0040.00419.29
8.2.20.0040.00418.00
8.2.10.0040.00417.89
8.2.00.0040.00418.04
8.1.280.0070.01425.92
8.1.270.0060.00322.02
8.1.260.0080.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00022.53
8.1.230.0040.00822.61
8.1.220.0040.00417.74
8.1.210.0080.00018.79
8.1.200.0040.00417.10
8.1.190.0080.00017.22
8.1.180.0000.00818.10
8.1.170.0040.00418.82
8.1.160.0040.00418.83
8.1.150.0030.00318.88
8.1.140.0070.00017.56
8.1.130.0000.00718.95
8.1.120.0000.00817.29
8.1.110.0080.00017.36
8.1.100.0040.00417.32
8.1.90.0000.00817.36
8.1.80.0000.00717.36
8.1.70.0040.00417.38
8.1.60.0040.00417.55
8.1.50.0070.00417.47
8.1.40.0030.00517.45
8.1.30.0030.00617.56
8.1.20.0030.00617.48
8.1.10.0000.00817.28
8.1.00.0030.00717.21
8.0.300.0040.00419.90
8.0.290.0000.00716.88
8.0.280.0000.00718.40
8.0.270.0000.00717.24
8.0.260.0040.00417.21
8.0.250.0000.00616.91
8.0.240.0000.00716.89
8.0.230.0000.00717.02
8.0.220.0000.00816.81
8.0.210.0030.00316.82
8.0.200.0000.00717.00
8.0.190.0050.00316.92
8.0.180.0100.00016.93
8.0.170.0040.00716.93
8.0.160.0000.00716.78
8.0.150.0000.00716.92
8.0.140.0000.00816.73
8.0.130.0050.00013.40
8.0.120.0040.00416.88
8.0.110.0000.00716.96
8.0.100.0040.00416.71
8.0.90.0040.00416.77
8.0.80.0090.00616.95
8.0.70.0040.00416.89
8.0.60.0050.00216.89
8.0.50.0030.00516.79
8.0.30.0080.00917.11
8.0.20.0080.01317.40
8.0.10.0030.00517.03
8.0.00.0130.00416.66
7.4.330.0020.00215.55
7.4.320.0030.00316.50
7.4.300.0000.00616.45
7.4.290.0000.00816.44
7.4.280.0040.00416.49
7.4.270.0050.00216.58
7.4.260.0030.00316.50
7.4.250.0000.00816.50
7.4.240.0000.00716.54
7.4.230.0000.00716.29
7.4.220.0040.00416.25
7.4.210.0110.00616.43
7.4.200.0070.00016.55
7.4.160.0100.00816.55
7.4.140.0100.00717.86
7.4.130.0070.01116.79
7.4.120.0150.01016.44
7.4.110.0110.00716.73
7.4.100.0070.01016.36
7.4.90.0120.00616.64
7.4.80.0180.00819.39
7.4.70.0150.00816.48
7.4.60.0060.00916.43
7.4.50.0080.00516.45
7.4.40.0060.01116.64
7.4.00.0060.00614.87
7.3.330.0050.00013.23
7.3.320.0050.00013.16
7.3.310.0070.00016.33
7.3.300.0040.00416.31
7.3.290.0000.00716.31
7.3.280.0070.01416.27
7.3.260.0120.00616.40
7.3.240.0070.01016.33
7.3.230.0110.00816.35
7.3.210.0050.01016.43
7.3.200.0080.00816.35
7.3.190.0150.00616.18
7.3.180.0090.01216.22
7.3.170.0030.01316.38
7.3.160.0060.01016.39
7.2.330.0120.00916.61
7.2.320.0060.01316.43
7.2.310.0100.00616.67
7.2.300.0120.00916.29
7.2.290.0110.01116.36
7.2.60.0030.00717.08
7.2.40.0540.00917.95
7.2.30.0420.01217.99
7.2.20.0520.01517.71
7.2.10.0610.00917.60
7.2.00.0440.01317.61
7.1.200.0030.00915.63
7.1.160.1880.01316.78
7.1.150.0630.01316.81
7.1.140.0560.01116.29
7.1.130.0600.01016.76
7.1.120.0420.01016.67
7.1.110.0410.01016.24
7.1.100.0650.01516.43
7.1.90.0540.01615.95
7.1.80.0670.00816.26
7.1.70.0370.01315.38
7.1.60.0740.01133.04
7.1.50.0730.01932.97
7.1.40.0660.00932.67
7.1.30.0800.01932.53
7.1.20.0580.01432.56
7.1.10.0470.01314.82
7.1.00.0640.01214.84

preferences:
55.9 ms | 400 KiB | 5 Q