3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler( function ($code, $string) { throw new Exception($string, $code); } ); try { interface I1 {} interface I2 {} class A implements I1 { public function fn() { echo 'foo'; } } class B extends A implements I2 { public function fn($arg) { echo $arg; } } } catch (Exception $e) { // ignore } $b = new B(); var_dump($b instanceof I1); // outputs "bool(false)" var_dump($b instanceof I2); // outputs "bool(false)" var_dump(class_implements('B')); // outputs "array(1) { 'I1' => string(2) "I1" }" $b->fn('bar'); // outputs "bar"

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.70.0060.00916.50
8.3.60.0000.01418.68
8.3.50.0100.01016.36
8.3.40.0040.01120.99
8.3.30.0120.00418.71
8.3.20.0040.00420.64
8.3.10.0080.00020.41
8.3.00.0050.00320.68
8.2.190.0060.00916.58
8.2.180.0040.01116.38
8.2.170.0040.01122.96
8.2.160.0030.01021.07
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00726.16
8.2.110.0070.00321.18
8.2.100.0120.00017.59
8.2.90.0030.00517.90
8.2.80.0050.00517.97
8.2.70.0040.00417.91
8.2.60.0000.00818.06
8.2.50.0150.00318.98
8.2.40.0060.00320.90
8.2.30.0040.00419.22
8.2.20.0000.00718.07
8.2.10.0050.00219.27
8.2.00.0040.00419.22
8.1.280.0100.00325.92
8.1.270.0040.00423.96
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00322.53
8.1.230.0110.00020.88
8.1.220.0040.00417.74
8.1.210.0050.00318.87
8.1.200.0000.00917.23
8.1.190.0040.00417.23
8.1.180.0000.00919.03
8.1.170.0000.00918.50
8.1.160.0000.00718.89
8.1.150.0000.00818.89
8.1.140.0040.00418.80
8.1.130.0070.00320.21
8.1.120.0040.00417.45
8.1.110.0040.00417.43
8.1.100.0040.00417.44
8.1.90.0000.00917.38
8.1.80.0040.00417.41
8.1.70.0040.00417.29
8.1.60.0040.00417.58
8.1.50.0000.00717.45
8.1.40.0000.00717.49
8.1.30.0000.00817.55
8.1.20.0040.00417.57
8.1.10.0030.00617.34
8.1.00.0040.00417.20
8.0.300.0050.00319.91
8.0.290.0070.00016.75
8.0.280.0040.00418.40
8.0.270.0080.00018.64
8.0.260.0060.00020.09
8.0.250.0040.00416.91
8.0.240.0000.00817.03
8.0.230.0030.00316.98
8.0.220.0000.00716.88
8.0.210.0040.00416.80
8.0.200.0080.00016.93
8.0.190.0000.00816.99
8.0.180.0050.00516.77
8.0.170.0000.00916.79
8.0.160.0040.00416.99
8.0.150.0030.00516.71
8.0.140.0050.00216.82
8.0.130.0060.00013.40
8.0.120.0050.00216.86
8.0.110.0040.00416.79
8.0.100.0070.00016.97
8.0.90.0030.00616.82
8.0.80.0060.01416.88
8.0.70.0000.00716.77
8.0.60.0000.00717.02
8.0.50.0030.00616.94
8.0.30.0070.01017.04
8.0.20.0100.00917.00
8.0.10.0000.00716.92
8.0.00.0130.01016.66
7.4.330.0030.00315.55
7.4.320.0030.00316.49
7.4.300.0030.00316.62
7.4.290.0050.00316.50
7.4.280.0040.00416.64
7.4.270.0030.00316.61
7.4.260.0050.00013.40
7.4.250.0000.00716.55
7.4.240.0020.00516.53
7.4.230.0020.00516.64
7.4.220.0060.00116.67
7.4.210.0100.00816.48
7.4.200.0030.00316.62
7.4.130.0090.01116.61
7.4.120.0090.00916.61
7.4.110.0100.00716.63
7.4.100.0120.00616.59
7.4.90.0060.01116.55
7.4.80.0060.01219.39
7.4.70.0090.01316.67
7.4.60.0040.01316.54
7.4.50.0040.01116.64
7.4.40.0030.01316.48
7.4.30.0070.01016.43
7.4.20.0060.01116.68
7.4.10.0130.00616.52
7.4.00.0000.01716.67
7.3.330.0000.00716.33
7.3.320.0060.00013.32
7.3.310.0000.00716.55
7.3.300.0040.00416.34
7.3.290.0050.00916.45
7.3.280.0060.01316.50
7.3.260.0100.00916.63
7.3.240.0100.00716.55
7.3.230.0190.00016.66
7.3.210.0070.01016.52
7.3.200.0030.01716.45
7.3.190.0080.00816.68
7.3.180.0100.01016.56
7.3.170.0070.01016.48
7.3.160.0110.00616.48
7.3.150.0060.00916.34
7.3.140.0110.01116.66
7.3.130.0090.00916.52
7.3.120.0080.00816.70
7.3.110.0090.00916.42
7.3.100.0140.00716.42
7.3.90.0030.02016.57
7.3.80.0140.00416.41
7.3.70.0030.01316.45
7.3.60.0120.00816.56
7.3.50.0170.00516.39
7.3.40.0040.01716.45
7.3.30.0060.01316.35
7.3.20.0040.01216.59
7.3.10.0070.01016.63
7.3.00.0080.00816.43
7.2.330.0030.01416.81
7.2.320.0060.01516.61
7.2.310.0000.01716.82
7.2.300.0090.00816.60
7.2.290.0110.00716.81
7.2.280.0030.01316.82
7.2.270.0090.00916.54
7.2.260.0090.00816.66
7.2.250.0030.01316.70
7.2.240.0160.00616.43
7.2.230.0120.00916.86
7.2.220.0090.01016.72
7.2.210.0060.01416.36
7.2.200.0030.01616.52
7.2.190.0070.01016.55
7.2.180.0150.00616.68
7.2.170.0100.01016.59
7.2.160.0070.01016.58
7.2.150.0140.00616.61
7.2.140.0220.01216.59
7.2.130.0120.00916.70
7.2.120.0130.01016.67
7.2.110.0150.00616.46
7.2.100.0030.01616.62
7.2.90.0090.00916.61
7.2.80.0030.01516.66
7.2.70.0160.00516.60
7.2.60.0120.00916.82
7.2.50.0140.01116.76
7.2.40.0090.01516.77
7.2.30.0160.00616.72
7.2.20.0060.01216.60
7.2.10.0110.01516.55
7.2.00.0150.00916.63

preferences:
20.25 ms | 401 KiB | 5 Q