3v4l.org

run code in 300+ PHP versions simultaneously
<?php // It seems instanceof only supports checking for directly implemented interfaces, not inherited ones: interface FooBarInterface { } class Bar implements FooBarInterface { } class Foo extends Bar { } $className = Foo::class; var_dump($className instanceof FooBarInterface); var_dump(is_subclass_of($className, FooBarInterface::class)); var_dump(class_implements($className));

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.00918.54
8.3.60.0090.00618.43
8.3.50.0110.00716.21
8.3.40.0150.00418.89
8.3.30.0130.00618.45
8.3.20.0110.00724.18
8.3.10.0040.00424.66
8.3.00.0030.00626.16
8.2.190.0110.01116.75
8.2.180.0150.00025.92
8.2.170.0070.00718.82
8.2.160.0100.01022.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0150.00026.16
8.2.120.0000.00720.96
8.2.110.0040.00422.19
8.2.100.0090.00317.91
8.2.90.0080.00017.91
8.2.80.0040.00419.02
8.2.70.0000.00817.63
8.2.60.0090.00018.04
8.2.50.0030.00618.07
8.2.40.0050.00318.16
8.2.30.0000.00717.96
8.2.20.0040.00418.06
8.2.10.0040.00419.16
8.2.00.0040.00419.30
8.1.280.0070.00725.92
8.1.270.0050.00323.82
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0130.01019.01
8.1.230.0040.00817.66
8.1.220.0090.00017.74
8.1.210.0000.00818.77
8.1.200.0000.01017.35
8.1.190.0000.00817.23
8.1.180.0080.00018.10
8.1.170.0030.00518.59
8.1.160.0040.00418.90
8.1.150.0000.00718.90
8.1.140.0040.00420.58
8.1.130.0080.00020.13
8.1.120.0000.00817.54
8.1.110.0000.00817.43
8.1.100.0070.00017.38
8.1.90.0040.00717.38
8.1.80.0020.00517.42
8.1.70.0100.00017.48
8.1.60.0000.00817.46
8.1.50.0000.00717.41
8.1.40.0040.00417.39
8.1.30.0080.00317.64
8.1.20.0000.00817.69
8.1.10.0000.00717.49
8.1.00.0050.00217.48
8.0.300.0030.00720.04
8.0.290.0080.00016.75
8.0.280.0080.00018.45
8.0.270.0030.00317.99
8.0.260.0030.00320.11
8.0.250.0030.00316.87
8.0.240.0040.00416.99
8.0.230.0030.00316.95
8.0.220.0000.00616.78
8.0.210.0030.00316.88
8.0.200.0000.00817.03
8.0.190.0050.00316.99
8.0.180.0000.00716.82
8.0.170.0000.00916.80
8.0.160.0070.00316.85
8.0.150.0000.00716.86
8.0.140.0070.00016.80
8.0.130.0000.00513.27
8.0.120.0000.00816.74
8.0.110.0080.00016.75
8.0.100.0070.00016.92
8.0.90.0020.00516.74
8.0.80.0130.00216.87
8.0.70.0040.00416.73
8.0.60.0000.00816.79
8.0.50.0000.00816.85
8.0.30.0070.01017.13
8.0.20.0080.01117.11
8.0.10.0000.00717.04
8.0.00.0190.00616.83
7.4.330.0020.00215.55
7.4.320.0000.00616.55
7.4.300.0000.00616.59
7.4.290.0080.00016.45
7.4.280.0080.00016.50
7.4.270.0070.00016.49
7.4.260.0030.00313.32
7.4.250.0070.00016.47
7.4.240.0060.00016.50
7.4.230.0070.00016.39
7.4.220.0000.00716.42
7.4.210.0100.00616.64
7.4.200.0000.00716.69
7.4.130.0070.01016.50
7.4.120.0040.01316.52
7.4.110.0070.01116.65
7.4.100.0140.00616.50
7.4.90.0130.00316.46
7.4.80.0100.00716.42
7.4.70.0050.01416.24
7.4.60.0100.00716.39
7.4.50.0130.00516.36
7.4.40.0030.01416.24
7.4.30.0120.01216.48
7.4.20.0090.00916.61
7.4.10.0090.00916.16
7.4.00.0100.01016.49
7.3.330.0020.00516.17
7.3.320.0030.00313.15
7.3.310.0080.00016.28
7.3.300.0060.00016.16
7.3.290.0060.00916.29
7.3.280.0000.01416.30
7.3.260.0170.00816.49
7.3.230.0120.00616.33
7.3.210.0130.00616.38
7.3.200.0110.00616.33
7.3.190.0060.01616.44
7.3.180.0090.00816.39
7.3.170.0150.00416.50
7.3.160.0140.00516.59
7.3.150.0160.00316.55
7.3.140.0000.01816.26
7.3.130.0120.00616.25
7.3.120.0110.01116.20
7.3.110.0160.00016.26
7.3.100.0100.00716.36
7.3.90.0110.00716.26
7.3.80.0080.00816.39
7.3.70.0080.01116.15
7.3.60.0170.00316.16
7.3.50.0130.01316.51
7.3.40.0070.01716.46
7.3.30.0120.00616.30
7.3.20.0110.00716.35
7.3.10.0170.00616.24
7.3.00.0000.01816.41
7.2.330.0140.00716.58
7.2.320.0080.00816.29
7.2.310.0120.00616.62
7.2.300.0040.01416.37
7.2.290.0040.01416.44
7.2.280.0050.01416.17
7.2.270.0080.01216.42
7.2.260.0110.01016.35
7.2.250.0100.00816.58
7.2.240.0150.00916.21
7.2.230.0000.01816.20
7.2.220.0080.01116.34
7.2.210.0140.00516.49
7.2.200.0160.00316.23
7.2.190.0080.01316.52
7.2.180.0040.01516.20
7.2.170.0170.00416.46
7.2.160.0070.01216.13
7.2.150.0150.00316.48
7.2.140.0110.00816.52
7.2.130.0130.00616.52
7.2.120.0050.01816.47
7.2.110.0180.00316.45
7.2.100.0000.01816.34
7.2.90.0150.00716.48
7.2.80.0150.00416.45
7.2.70.0150.00416.39
7.2.60.0080.00816.39
7.2.50.0090.00916.41
7.2.40.0060.01316.39
7.2.30.0070.01816.41
7.2.20.0220.00316.48
7.2.10.0120.01316.48
7.2.00.0170.01116.42

preferences:
48.53 ms | 401 KiB | 5 Q