3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface ShipInterface {} abstract class AbstractShip implements ShipInterface {} class ShipOnlyAbstract extends AbstractShip {} class ShipWithInterface extends AbstractShip implements ShipInterface {} $shipOnlyAbstract = new ShipOnlyAbstract(); $shipWithInterface = new ShipWithInterface(); var_dump($shipOnlyAbstract instanceof AbstractShip); var_dump($shipWithInterface instanceof AbstractShip); var_dump($shipOnlyAbstract instanceof ShipInterface); var_dump($shipWithInterface instanceof ShipInterface); var_dump(class_implements($shipOnlyAbstract)); var_dump(class_implements($shipWithInterface)); var_dump(class_parents($shipOnlyAbstract)); var_dump(class_parents($shipWithInterface)); $refShipOnlyAbstract = new ReflectionClass("ShipOnlyAbstract"); $refShipWithInterface = new ReflectionClass("ShipWithInterface"); var_dump(ReflectionClass::export("ShipOnlyAbstract")); var_dump(ReflectionClass::export("ShipWithInterface"));

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.0070.00718.31
8.3.50.0040.01521.97
8.3.40.0090.00618.77
8.3.30.0100.00719.08
8.3.20.0080.00020.13
8.3.10.0040.00423.65
8.3.00.0110.00019.25
8.2.180.0120.00616.75
8.2.170.0110.00422.96
8.2.160.0070.00720.46
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0020.00520.97
8.2.110.0060.00320.35
8.2.100.0110.00018.16
8.2.90.0070.00019.17
8.2.80.0050.00317.97
8.2.70.0050.00517.63
8.2.60.0030.00617.80
8.2.50.0040.00418.07
8.2.40.0040.00418.28
8.2.30.0000.00718.10
8.2.20.0040.00417.76
8.2.10.0050.00318.11
8.2.00.0000.01017.65
8.1.280.0040.01125.92
8.1.270.0060.00322.14
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0090.00023.87
8.1.230.0060.00619.16
8.1.220.0040.00417.76
8.1.210.0080.00018.77
8.1.200.0040.00417.23
8.1.190.0030.00617.35
8.1.180.0000.00818.10
8.1.170.0080.00018.50
8.1.160.0040.00422.00
8.1.150.0000.00718.92
8.1.140.0040.00417.39
8.1.130.0050.00317.86
8.1.120.0000.00717.48
8.1.110.0050.00317.41
8.1.100.0070.00017.48
8.1.90.0040.00417.55
8.1.80.0000.00717.46
8.1.70.0000.00717.49
8.1.60.0000.00817.60
8.1.50.0040.00417.59
8.1.40.0040.00417.55
8.1.30.0000.00817.71
8.1.20.0040.00417.64
8.1.10.0000.00717.62
8.1.00.0040.00417.57
8.0.300.0070.00018.77
8.0.290.0030.00616.75
8.0.280.0070.00018.46
8.0.270.0040.00717.29
8.0.260.0030.00317.32
8.0.250.0030.00316.95
8.0.240.0000.00717.08
8.0.230.0000.00717.05
8.0.220.0000.00716.92
8.0.210.0020.00516.96
8.0.200.0030.00316.98
8.0.190.0060.00317.01
8.0.180.0080.00016.88
8.0.170.0030.00617.08
8.0.160.0030.00516.96
8.0.150.0070.00016.90
8.0.140.0040.00416.84
8.0.130.0000.00613.41
8.0.120.0070.00016.95
8.0.110.0000.00717.05
8.0.100.0000.00716.80
8.0.90.0030.00616.84
8.0.80.0040.01116.95
8.0.70.0000.00716.81
8.0.60.0040.00416.84
8.0.50.0040.00417.01
8.0.30.0100.01217.14
8.0.20.0070.01217.40
8.0.10.0040.00417.06
8.0.00.0140.00416.94
7.4.330.0060.00015.00
7.4.320.0030.00316.55
7.4.300.0040.00416.45
7.4.290.0000.00716.64
7.4.280.0000.00716.42
7.4.270.0000.00716.56
7.4.260.0000.00716.50
7.4.250.0080.00016.51
7.4.240.0020.00516.57
7.4.230.0070.00016.42
7.4.220.0110.00716.68
7.4.210.0110.00316.58
7.4.200.0030.00316.38
7.4.160.0160.00716.60
7.4.150.0060.01217.40
7.4.140.0120.00617.86
7.4.130.0080.01016.45
7.4.120.0090.01416.53
7.4.110.0120.00616.52
7.4.100.0100.00716.59
7.4.90.0000.01716.63
7.4.80.0160.00419.39
7.4.70.0120.00616.59
7.4.60.0130.00316.65
7.4.50.0060.00316.52
7.4.40.0090.01616.55
7.4.30.0040.01216.43
7.4.00.0060.00915.22
7.3.330.0030.00513.19
7.3.320.0050.00013.32
7.3.310.0000.00716.30
7.3.300.0000.00616.35
7.3.290.0120.00516.30
7.3.280.0080.00916.34
7.3.270.0140.00317.40
7.3.260.0130.00916.63
7.3.250.0100.00716.35
7.3.240.0110.00916.70
7.3.230.0060.01216.39
7.3.210.0110.00816.52
7.3.200.0030.01619.39
7.3.190.0000.02416.25
7.3.180.0030.01216.20
7.3.170.0060.01016.50
7.3.160.0130.01016.39
7.2.330.0110.00716.71
7.2.320.0150.00416.76
7.2.310.0030.01316.51
7.2.300.0070.01116.74
7.2.290.0090.00916.68
7.2.00.0000.01219.11
7.1.100.0030.00718.01
7.1.70.0000.00817.02
7.1.60.0100.01319.32
7.1.50.0030.01016.88
7.1.00.0070.08722.47
7.0.200.0060.00316.94
7.0.140.0000.07322.11
7.0.60.0100.07719.94
7.0.50.0130.03717.82
7.0.40.0070.06320.05
7.0.30.0500.06720.21
7.0.20.0300.08020.10
7.0.10.0030.08320.08
7.0.00.0000.05020.30
5.6.280.0100.06721.00
5.6.210.0070.06320.54
5.6.200.0100.06318.13
5.6.190.0070.06320.61
5.6.180.0270.05020.63
5.6.170.0300.04020.57
5.6.160.0070.04020.49
5.6.150.0030.08718.22
5.6.140.0000.04318.14
5.6.130.0070.06718.20
5.6.120.0200.07320.79
5.6.110.0100.07721.02
5.6.100.0100.08021.00
5.6.90.0030.07320.88
5.6.80.0000.05020.37
5.5.350.0070.09020.53
5.5.340.0070.08317.95
5.5.330.0070.05320.29
5.5.320.0300.04320.36
5.5.310.0330.07020.27
5.5.300.0070.04717.95
5.5.290.0070.07718.04
5.5.280.0030.08320.63
5.5.270.0070.07720.75
5.5.260.0030.06020.77
5.5.250.0070.06720.47
5.5.240.0230.07720.19
5.4.450.3800.04019.42
5.4.440.4300.05019.20
5.4.430.3430.03019.38
5.4.420.4300.03719.56
5.4.410.3670.04019.42
5.4.400.3970.03319.08
5.4.390.4030.03719.16
5.4.380.4230.03319.31
5.4.370.3930.03318.84
5.4.360.3900.04019.24
5.4.350.3570.04019.06
5.4.340.4130.03318.88
5.4.320.3530.04719.08
5.4.310.3730.03719.09
5.4.300.3170.03319.14
5.4.290.3400.03319.22
5.4.280.3700.04019.10
5.4.270.3700.03719.13
5.4.260.3230.04018.98
5.4.250.3400.03319.13
5.4.240.3500.03718.87
5.4.230.4030.05318.88
5.4.220.3570.04018.97
5.4.210.2530.04018.93
5.4.200.3630.04019.16
5.4.190.3770.03319.08
5.4.180.3500.03719.08
5.4.170.3870.03719.21
5.4.160.3700.04018.83
5.4.150.3570.04019.07
5.4.140.3830.03716.39
5.4.130.3730.04316.57
5.4.120.4230.04016.43
5.4.110.3570.03716.57
5.4.100.3870.03016.50
5.4.90.3830.03716.40
5.4.80.3970.03316.57
5.4.70.4430.04016.23
5.4.60.4370.03716.17
5.4.50.4000.03316.50
5.4.40.3400.03716.43
5.4.30.3630.04016.55
5.4.20.3930.03016.43
5.4.10.4000.03016.43
5.4.00.3670.03715.84
5.3.290.4470.04314.71
5.3.280.3830.04014.65
5.3.270.4030.03714.53
5.3.260.3830.04014.73
5.3.250.3770.03714.73
5.3.240.4000.03314.67
5.3.230.4400.03714.83
5.3.220.4370.03314.50
5.3.210.3930.04014.48
5.3.200.3700.04014.50
5.3.190.3730.03714.66
5.3.180.4600.04314.47
5.3.170.4670.03714.73
5.3.160.3930.03314.65
5.3.150.3630.04314.69
5.3.140.4270.03714.56
5.3.130.3900.03314.64
5.3.120.4070.04014.53
5.3.110.4070.03714.47
5.3.100.3730.03714.05
5.3.90.3670.04014.03
5.3.80.3930.04014.00
5.3.70.3570.04014.07
5.3.60.3730.04313.91
5.3.50.4230.03313.89
5.3.40.4870.03313.88
5.3.30.3570.03713.92
5.3.20.3730.04713.92
5.3.10.3630.03013.67
5.3.00.4330.03713.57
5.2.170.3200.03012.95
5.2.160.3330.03012.95
5.2.150.3230.03712.95
5.2.140.3570.02012.95
5.2.130.3330.02712.95
5.2.120.3370.03312.95
5.2.110.2970.02712.95
5.2.100.3930.02712.95
5.2.90.3830.03012.95
5.2.80.4930.03012.95
5.2.70.3330.03012.95
5.2.60.3800.03012.95
5.2.50.3830.03012.95
5.2.40.3230.02312.95
5.2.30.2930.02312.95
5.2.20.3130.03012.95
5.2.10.2270.02712.95
5.2.00.2400.03012.95
5.1.60.2630.02012.95
5.1.50.2630.02312.95
5.1.40.2530.02012.95
5.1.30.2430.02312.95
5.1.20.3200.02312.95
5.1.10.2600.02712.95
5.1.00.2070.02712.95
5.0.50.1500.01712.95
5.0.40.1800.02012.95
5.0.30.1700.03712.95
5.0.20.1730.02012.95
5.0.10.1770.01712.95
5.0.00.1700.03312.95
4.4.90.1800.01312.95
4.4.80.1700.02012.95
4.4.70.1530.01312.95
4.4.60.1300.01712.95
4.4.50.1400.01712.95
4.4.40.1400.02712.95
4.4.30.1570.01312.95
4.4.20.1600.01712.95
4.4.10.1800.01312.95
4.4.00.1830.02712.95
4.3.110.1500.01312.95
4.3.100.1800.01712.95
4.3.90.1770.01312.95
4.3.80.1700.02312.95
4.3.70.1470.01712.95
4.3.60.1830.01012.95
4.3.50.1770.01312.95
4.3.40.2000.02312.95
4.3.30.0930.02012.95
4.3.20.0770.01712.95
4.3.10.0930.02312.95
4.3.00.1100.02012.95

preferences:
36.74 ms | 401 KiB | 5 Q