3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface FooInterface { public function test(\StdClass $objec); } class Foo implements FooInterface { public function test(\StdClass $object) { } } class Bar extends Foo { public function test(\DateTime $object) { echo 'yes'; } } $bar = new Bar(); $bar->test(new \DateTime());

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.40.0090.00618.68
8.3.30.0080.00618.54
8.3.20.0000.01420.20
8.3.10.0050.00323.71
8.3.00.0080.00019.43
8.2.170.0140.00722.96
8.2.160.0080.00520.51
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0060.00317.49
8.2.110.0090.00020.19
8.2.100.0040.00717.78
8.2.90.0000.00919.22
8.2.80.0050.00517.97
8.2.70.0040.00417.34
8.2.60.0000.00917.93
8.2.50.0060.00318.07
8.2.40.0040.00419.45
8.2.30.0040.00419.70
8.2.20.0040.00417.73
8.2.10.0060.00318.06
8.2.00.0070.00017.91
8.1.270.0030.00620.33
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0100.00023.95
8.1.230.0030.00920.64
8.1.220.0000.00817.74
8.1.210.0050.00518.77
8.1.200.0060.00317.22
8.1.190.0040.00417.23
8.1.180.0030.00618.10
8.1.170.0000.00818.55
8.1.160.0040.00422.11
8.1.150.0040.00418.89
8.1.140.0040.00417.41
8.1.130.0020.00517.51
8.1.120.0070.00017.41
8.1.110.0040.00417.45
8.1.100.0000.00717.41
8.1.90.0000.00717.38
8.1.80.0050.00217.31
8.1.70.0070.00017.43
8.1.60.0040.00417.40
8.1.50.0050.00317.45
8.1.40.0040.00417.42
8.1.30.0040.00417.58
8.1.20.0060.00317.58
8.1.10.0000.00717.35
8.1.00.0000.00817.33
8.0.300.0080.00018.77
8.0.290.0000.00816.75
8.0.280.0050.00218.30
8.0.270.0070.00017.13
8.0.260.0060.00017.23
8.0.250.0080.00016.80
8.0.240.0030.00316.82
8.0.230.0000.00616.84
8.0.220.0030.00316.79
8.0.210.0030.00516.93
8.0.200.0050.00216.98
8.0.190.0040.00416.93
8.0.180.0070.00016.80
8.0.170.0000.00816.92
8.0.160.0070.00016.94
8.0.150.0060.00316.88
8.0.140.0000.00716.84
8.0.130.0000.00713.31
8.0.120.0040.00416.90
8.0.110.0040.00416.78
8.0.100.0040.00417.00
8.0.90.0030.00516.89
8.0.80.0090.00616.85
8.0.70.0020.00516.82
8.0.60.0040.00416.85
8.0.50.0050.00216.95
8.0.30.0110.00617.19
8.0.20.0070.01217.40
8.0.10.0070.00016.96
8.0.00.0140.00516.74
7.4.330.0020.00215.09
7.4.320.0000.00716.52
7.4.300.0060.00016.45
7.4.290.0000.00716.46
7.4.280.0040.00416.44
7.4.270.0080.00016.46
7.4.260.0000.00716.48
7.4.250.0000.00916.28
7.4.240.0040.00316.53
7.4.230.0030.00316.44
7.4.220.0100.00716.52
7.4.210.0060.00816.51
7.4.200.0000.00716.63
7.4.160.0000.01716.53
7.4.150.0000.01717.40
7.4.140.0120.01017.86
7.4.130.0120.00616.48
7.4.120.0130.00516.42
7.4.110.0100.01316.46
7.4.100.0030.02016.54
7.4.90.0100.00716.35
7.4.80.0100.01019.39
7.4.70.0130.00916.48
7.4.60.0120.00316.34
7.4.50.0040.00416.59
7.4.40.0060.01616.52
7.4.30.0030.01916.57
7.4.00.0050.01015.12
7.3.330.0020.00313.17
7.3.320.0060.00013.07
7.3.310.0000.00716.16
7.3.300.0060.00016.30
7.3.290.0060.01016.27
7.3.280.0070.01316.31
7.3.270.0100.00617.40
7.3.260.0100.00716.52
7.3.250.0080.00916.39
7.3.240.0100.00616.57
7.3.230.0160.00616.39
7.3.210.0060.01016.29
7.3.200.0060.00916.39
7.3.190.0070.01016.31
7.3.180.0120.00416.46
7.3.170.0150.00616.58
7.3.160.0030.02016.35
7.3.120.0070.01114.66
7.3.110.0000.01514.81
7.3.100.0060.00915.01
7.3.90.0090.00014.45
7.3.80.0040.01114.68
7.3.70.0040.00714.74
7.3.60.0140.00314.77
7.3.50.0000.01414.77
7.3.40.0030.01014.85
7.3.30.0030.00714.72
7.3.20.0040.01116.68
7.3.10.0100.00716.64
7.3.00.0030.01016.59
7.2.330.0000.01616.28
7.2.320.0060.01416.56
7.2.310.0200.00516.37
7.2.300.0160.00016.64
7.2.290.0140.00916.58
7.2.250.0030.01714.61
7.2.240.0100.01014.73
7.2.230.0030.00714.75
7.2.220.0040.01114.47
7.2.210.0090.00914.63
7.2.200.0040.00414.48
7.2.190.0100.00714.61
7.2.180.0030.00914.95
7.2.170.0030.00714.89
7.2.60.0160.00416.64
7.2.00.0030.00619.27
7.1.330.0070.00715.71
7.1.320.0100.00715.85
7.1.310.0120.00415.55
7.1.300.0060.00915.79
7.1.290.0030.00715.77
7.1.280.0030.01215.66
7.1.270.0060.00615.74
7.1.260.0040.01115.77
7.1.200.0000.01015.80
7.1.100.0000.01218.02
7.1.70.0040.00417.16
7.1.60.0040.02120.03
7.1.50.0100.01016.62
7.1.00.0000.07322.43
7.0.200.0070.00316.40
7.0.60.0070.06720.01
7.0.50.0030.07717.77
7.0.40.0200.07720.24
7.0.30.0500.04020.13
7.0.20.0230.04020.19
7.0.10.0030.09320.30
7.0.00.0100.03720.12
5.6.280.0100.04021.13
5.6.210.0230.05020.56
5.6.200.0030.07718.27
5.6.190.0100.08020.48
5.6.180.0330.07720.33
5.6.170.0300.07320.55
5.6.160.0070.05720.54
5.6.150.0030.04318.19
5.6.140.0130.04318.25
5.6.130.0100.06018.21
5.6.120.0070.04021.05
5.6.110.0100.07720.98
5.6.100.0030.09020.99
5.6.90.0100.04720.99
5.6.80.0100.08020.40
5.5.350.0100.06720.36
5.5.340.0030.05317.94
5.5.330.0030.08720.31
5.5.320.0370.07020.32
5.5.310.0330.06720.50
5.5.300.0030.04017.92
5.5.290.0030.06318.04
5.5.280.0030.05320.81
5.5.270.0030.09320.84
5.5.260.0070.05720.68
5.5.250.0200.05720.69
5.5.240.0000.08020.17
5.4.450.0630.05719.16
5.4.440.0470.06319.36
5.4.430.0830.06019.69
5.4.420.0630.06019.60
5.4.410.0570.06019.56
5.4.400.0530.05319.25
5.4.390.0570.05318.85
5.4.380.0630.04018.98
5.4.370.0430.06019.14
5.4.360.0630.05019.27
5.4.350.0870.05018.86
5.4.340.0670.06019.30
5.4.320.0770.05719.02
5.4.310.0570.05019.31
5.4.300.0530.05019.36
5.4.290.0730.06719.25
5.4.280.0630.05319.15
5.4.270.0630.05019.36
5.4.260.0770.05019.14
5.4.250.0600.05019.05
5.4.240.0600.05319.30
5.4.230.0800.05318.97
5.4.220.0530.06019.21
5.4.210.0500.05319.30
5.4.200.0530.04719.21
5.4.190.0570.04319.14
5.4.180.0570.05019.06
5.4.170.0570.04718.85
5.4.160.0600.04319.35
5.4.150.0470.05718.81
5.4.140.0500.05316.37
5.4.130.0500.04716.59
5.4.120.0530.04716.55
5.4.110.0500.05716.67
5.4.100.0570.05316.57
5.4.90.0470.05016.66
5.4.80.0530.05016.57
5.4.70.0230.03316.58
5.4.60.0330.04716.26
5.4.50.0170.03716.14
5.4.40.0330.06016.38
5.4.30.0030.04016.55
5.4.20.0200.06316.19
5.4.10.0200.03716.51

preferences:
53.84 ms | 400 KiB | 5 Q