3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface A {} class B implements A {} class C extends B {} class D extends B implements A {} $bRef = new ReflectionClass('B'); $cRef = new ReflectionClass('C'); $dRef = new ReflectionClass('D'); echo 'B implements A: '.($bRef->implementsInterface('A') ? 'yes' : 'no'); echo 'C implements A: '.$cRef->implementsInterface('A') ? 'yes' : 'no'; echo 'D implements A: '.$dRef->implementsInterface('A') ? 'yes' : 'no'; echo 'B subclass of A: '.$bRef->isSubclassOf('A') ? 'yes' : 'no'; echo 'C subclass of A: '.$cRef->isSubclassOf('A') ? 'yes' : 'no'; echo 'D subclass of A: '.$dRef->isSubclassOf('A') ? 'yes' : 'no';

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.0140.00716.50
8.3.50.0120.00821.98
8.3.40.0140.00718.71
8.3.30.0100.00318.86
8.3.20.0070.00020.39
8.3.10.0000.00823.48
8.3.00.0100.00020.45
8.2.180.0070.01016.50
8.2.170.0180.00322.96
8.2.160.0110.00320.38
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0030.01526.16
8.2.120.0000.00822.21
8.2.110.0000.00922.25
8.2.100.0000.01217.51
8.2.90.0040.00419.23
8.2.80.0000.00817.97
8.2.70.0030.00517.63
8.2.60.0050.00317.99
8.2.50.0030.00518.07
8.2.40.0070.00018.16
8.2.30.0080.00018.13
8.2.20.0040.00417.78
8.2.10.0020.00517.57
8.2.00.0040.00417.75
8.1.280.0100.00325.92
8.1.270.0110.00422.17
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0060.00323.69
8.1.230.0090.00319.00
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0080.00017.51
8.1.180.0000.00818.10
8.1.170.0090.00318.49
8.1.160.0050.00321.94
8.1.150.0080.00018.72
8.1.140.0000.00717.37
8.1.130.0000.00717.75
8.1.120.0030.00517.47
8.1.110.0000.00717.34
8.1.100.0070.00017.50
8.1.90.0040.00417.51
8.1.80.0040.00417.46
8.1.70.0040.00417.41
8.1.60.0030.00617.63
8.1.50.0000.00917.57
8.1.40.0070.00017.44
8.1.30.0080.00017.68
8.1.20.0060.00317.50
8.1.10.0000.00817.61
8.1.00.0000.00717.55
8.0.300.0050.00318.77
8.0.290.0000.00717.05
8.0.280.0030.00318.44
8.0.270.0070.00017.33
8.0.260.0000.00616.70
8.0.250.0000.00716.91
8.0.240.0040.00416.84
8.0.230.0030.00416.98
8.0.220.0030.00316.82
8.0.210.0000.00716.93
8.0.200.0030.00316.98
8.0.190.0040.00416.88
8.0.180.0030.00516.80
8.0.170.0000.00816.89
8.0.160.0000.00816.79
8.0.150.0040.00416.86
8.0.140.0000.00816.76
8.0.130.0000.00513.27
8.0.120.0040.00416.83
8.0.110.0000.00816.92
8.0.100.0050.00316.75
8.0.90.0000.00716.73
8.0.80.0040.01116.95
8.0.70.0040.00416.95
8.0.60.0050.00216.86
8.0.50.0050.00216.89
8.0.30.0090.01517.07
8.0.20.0070.01317.40
8.0.10.0040.00416.96
8.0.00.0090.00916.82
7.4.330.0030.00315.04
7.4.320.0000.00616.59
7.4.300.0060.00016.48
7.4.290.0030.00316.62
7.4.280.0000.00916.55
7.4.270.0070.00016.54
7.4.260.0070.00016.53
7.4.250.0050.00316.43
7.4.240.0050.00216.58
7.4.230.0050.00316.50
7.4.220.0060.01216.55
7.4.210.0080.00816.60
7.4.200.0040.00416.62
7.4.190.0040.00416.55
7.4.160.0130.00716.38
7.4.150.0180.00017.40
7.4.140.0100.00717.86
7.4.130.0030.01316.49
7.4.120.0060.01616.62
7.4.110.0070.01016.61
7.4.100.0130.00616.32
7.4.90.0060.01116.43
7.4.80.0130.00416.45
7.4.70.0060.01216.54
7.4.60.0160.00316.60
7.4.50.0000.00816.51
7.4.40.0000.01622.77
7.4.30.0120.00616.47
7.4.00.0100.00714.98
7.3.330.0030.00313.26
7.3.320.0020.00513.18
7.3.310.0000.00716.29
7.3.300.0030.00316.27
7.3.290.0090.01216.30
7.3.280.0110.00816.27
7.3.270.0100.00717.40
7.3.260.0100.00716.29
7.3.250.0110.00616.30
7.3.240.0130.01016.48
7.3.230.0080.00816.39
7.3.210.0110.00716.29
7.3.200.0150.00619.39
7.3.190.0100.01116.24
7.3.180.0090.01216.45
7.3.170.0130.00316.38
7.3.160.0070.01016.26
7.3.120.0080.00814.91
7.3.110.0070.01014.78
7.3.100.0120.00314.75
7.3.90.0050.00814.70
7.3.80.0080.00814.53
7.3.70.0050.00714.61
7.3.60.0050.00914.82
7.3.50.0020.00914.62
7.3.40.0050.00914.60
7.3.30.0060.00314.82
7.3.20.0080.00616.62
7.3.10.0080.00516.55
7.3.00.0090.00616.61
7.2.330.0120.00816.75
7.2.320.0080.01216.50
7.2.310.0160.00616.54
7.2.300.0070.01016.79
7.2.290.0100.00616.78
7.2.250.0100.01015.16
7.2.240.0100.01015.00
7.2.230.0050.01214.84
7.2.220.0050.00815.07
7.2.210.0060.00715.16
7.2.200.0040.00915.16
7.2.190.0030.00614.96
7.2.180.0080.00815.24
7.2.170.0090.00815.08
7.2.130.0060.00616.97
7.2.120.0070.01016.95
7.2.110.0030.01016.87
7.2.100.0090.00616.84
7.2.90.0080.00416.89
7.2.80.0070.00716.97
7.2.70.0030.01016.92
7.2.60.0090.00917.09
7.2.50.0000.01716.38
7.2.40.0100.00716.25
7.2.30.0100.00316.71
7.2.20.0100.00617.00
7.2.10.0070.01016.99
7.2.00.0110.00318.19
7.1.330.0030.01115.65
7.1.320.0030.01115.60
7.1.310.0030.00815.59
7.1.300.0030.00815.76
7.1.290.0080.00815.59
7.1.280.0050.00715.61
7.1.270.0050.00715.78
7.1.260.0060.01015.78
7.1.250.0070.00715.67
7.1.100.0800.01315.82
7.1.70.0000.01117.05
7.1.60.0120.01219.29
7.1.50.0130.01016.53
7.1.00.0100.07022.31
7.0.200.0030.00616.55
7.0.140.0070.07321.95
7.0.60.0130.07319.95
7.0.50.0030.07317.88
7.0.40.0000.06020.27
7.0.30.0470.06720.34
7.0.20.0270.04720.24
7.0.10.0130.06320.12
7.0.00.0030.04720.06
5.6.280.0000.07720.77
5.6.210.0130.07720.78
5.6.200.0070.08018.29
5.6.190.0030.08320.42
5.6.180.0000.04320.61
5.6.170.0230.03720.39
5.6.160.0130.07020.57
5.6.150.0070.06718.19
5.6.140.0030.04018.27
5.6.130.0030.04318.22
5.6.120.0100.06021.00
5.6.110.0170.07721.14
5.6.100.0130.03721.12
5.6.90.0100.05720.97
5.6.80.0170.07020.52
5.6.70.4130.03720.39
5.5.350.0030.07320.36
5.5.340.0130.07318.09
5.5.330.0030.04320.59
5.5.320.0000.08720.25
5.5.310.0170.05320.28
5.5.300.0170.07017.98
5.5.290.0070.03717.96
5.5.280.0100.04320.79
5.5.270.0130.06720.81
5.5.260.0230.06020.91
5.5.250.0100.06020.48
5.5.240.0030.04320.28
5.4.450.0030.06019.32
5.4.440.3570.04019.41
5.4.430.2200.03319.30
5.4.420.2400.04019.55
5.4.410.3000.03719.30
5.4.400.3730.04018.86
5.4.390.2670.03319.31
5.4.380.3000.03719.20
5.4.370.4000.03719.16
5.4.360.3800.04019.05
5.4.350.3100.03718.84
5.4.340.3530.04019.06
5.4.320.3300.03319.22
5.4.310.3000.03719.08
5.4.300.3570.04018.88
5.4.290.2300.04018.94
5.4.280.3500.04019.13
5.4.270.3200.03719.22
5.4.260.3330.04319.13
5.4.250.3830.03718.84
5.4.240.3500.03719.14
5.4.230.2670.04318.86
5.4.220.3830.04019.16
5.4.210.3830.03719.14
5.4.200.3600.03719.19
5.4.190.3030.03719.07
5.4.180.3800.03718.86
5.4.170.3300.03319.20
5.4.160.3670.02719.07
5.4.150.3030.03719.17
5.4.140.2930.03716.72
5.4.130.3330.03316.46
5.4.120.3270.03016.41
5.4.110.4200.03316.51
5.4.100.3800.04016.52
5.4.90.4070.04316.59
5.4.80.4070.03316.57
5.4.70.4270.04316.57
5.4.60.4200.03316.27
5.4.50.3030.02716.39
5.4.40.3170.03316.54
5.4.30.2900.03716.43
5.4.20.3030.03316.32
5.4.10.3130.04316.52
5.4.00.3470.03315.84
5.3.290.2900.04014.90
5.3.280.3770.03714.58
5.3.270.3200.04314.52
5.3.260.3200.04014.73
5.3.250.3400.03714.64
5.3.240.3400.03314.62
5.3.230.4200.03714.83
5.3.220.3600.03014.66
5.3.210.3870.04014.80
5.3.200.3900.03714.66
5.3.190.3630.03714.55
5.3.180.2870.04014.55
5.3.170.3870.04014.73
5.3.160.4270.03714.45
5.3.150.3530.03314.59
5.3.140.3230.03014.57
5.3.130.3330.03714.78
5.3.120.3930.04014.64
5.3.110.3100.03714.56
5.3.100.3500.03314.04
5.3.90.3830.03313.93
5.3.80.4130.04013.94
5.3.70.3700.03314.00
5.3.60.3930.03313.98
5.3.50.3130.04313.87
5.3.40.3030.03714.08
5.3.30.3230.03713.84
5.3.20.3600.03713.72
5.3.10.2800.03713.78
5.3.00.3170.04013.80
5.2.170.2730.04011.13
5.2.160.2730.02311.21
5.2.150.2500.02311.16
5.2.140.2470.03711.11
5.2.130.2770.03311.06
5.2.120.2730.03011.03
5.2.110.2470.02711.20
5.2.100.2630.03311.27
5.2.90.0400.02311.03
5.2.80.0030.03711.08
5.2.70.0070.02311.02
5.2.60.0070.02710.96
5.2.50.2570.03011.14
5.2.40.2130.02711.06
5.2.30.2100.03310.88
5.2.20.1570.03310.88
5.2.10.2000.01710.80
5.2.00.2100.02710.80
5.1.60.1800.02010.68
5.1.50.1600.03010.68
5.1.40.1570.02310.68
5.1.30.1730.02710.68
5.1.20.1200.02710.68
5.1.10.2200.02310.68
5.1.00.1470.03010.68
5.0.50.1070.02010.68
5.0.40.0800.02010.68
5.0.30.0930.03010.68
5.0.20.0900.02010.68
5.0.10.1030.01710.68
5.0.00.0600.03710.68
4.4.90.0000.01710.68
4.4.80.0830.01310.68
4.4.70.1370.02010.68
4.4.60.0670.01710.68
4.4.50.1600.01710.68
4.4.40.1400.03010.68
4.4.30.0430.01310.68
4.4.20.0630.01310.68
4.4.10.0830.01310.68
4.4.00.1130.02710.68
4.3.110.1100.01310.68
4.3.100.0900.01310.68
4.3.90.0870.01710.68
4.3.80.0900.02710.68
4.3.70.0930.01310.68
4.3.60.1030.01010.68
4.3.50.0830.01310.68
4.3.40.1070.02310.68
4.3.30.0470.01710.68
4.3.20.0470.01710.68
4.3.10.0330.01710.68
4.3.00.0370.01310.68

preferences:
53.38 ms | 401 KiB | 5 Q