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: '; 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.0120.00318.30
8.3.50.0090.00621.99
8.3.40.0090.00618.71
8.3.30.0130.00319.05
8.3.20.0000.00820.21
8.3.10.0040.00422.11
8.3.00.0080.00022.58
8.2.180.0120.00916.75
8.2.170.0070.01322.96
8.2.160.0030.01218.79
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00019.35
8.2.110.0060.00322.20
8.2.100.0080.00419.45
8.2.90.0080.00019.22
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0080.00317.93
8.2.50.0000.00918.07
8.2.40.0000.00818.03
8.2.30.0000.00718.07
8.2.20.0040.00417.74
8.2.10.0040.00419.34
8.2.00.0040.00417.58
8.1.280.0100.00725.92
8.1.270.0060.00321.98
8.1.260.0000.00926.35
8.1.250.0040.00428.09
8.1.240.0080.00023.79
8.1.230.0040.00719.29
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0080.00017.54
8.1.180.0030.00518.63
8.1.170.0070.00318.67
8.1.160.0050.00221.90
8.1.150.0040.00418.72
8.1.140.0080.00017.45
8.1.130.0000.00717.77
8.1.120.0000.00717.55
8.1.110.0040.00417.46
8.1.100.0040.00417.46
8.1.90.0000.00817.39
8.1.80.0000.00717.39
8.1.70.0000.00717.38
8.1.60.0040.00417.61
8.1.50.0030.00517.58
8.1.40.0040.00417.43
8.1.30.0060.00317.54
8.1.20.0060.00317.70
8.1.10.0000.00817.60
8.1.00.0000.00917.50
8.0.300.0070.00018.77
8.0.290.0080.00017.18
8.0.280.0000.00818.38
8.0.270.0030.00317.12
8.0.260.0030.00316.89
8.0.250.0070.00016.99
8.0.240.0000.00816.93
8.0.230.0000.00716.88
8.0.220.0030.00316.80
8.0.210.0030.00316.93
8.0.200.0000.00616.86
8.0.190.0060.00317.04
8.0.180.0000.00716.95
8.0.170.0000.00816.85
8.0.160.0080.00016.94
8.0.150.0000.00716.93
8.0.140.0040.00416.78
8.0.130.0000.00813.30
8.0.120.0040.00416.75
8.0.110.0000.00816.81
8.0.100.0040.00416.78
8.0.90.0040.00416.85
8.0.80.0090.00616.91
8.0.70.0040.00416.93
8.0.60.0050.00216.73
8.0.50.0030.00417.02
8.0.30.0100.00917.07
8.0.20.0050.01617.40
8.0.10.0060.00317.02
8.0.00.0140.00516.86
7.4.330.0030.00315.00
7.4.320.0030.00316.57
7.4.300.0000.00616.50
7.4.290.0000.00716.42
7.4.280.0030.00316.59
7.4.270.0040.00416.59
7.4.260.0030.00516.59
7.4.250.0000.00716.54
7.4.240.0030.00516.58
7.4.230.0070.00016.40
7.4.220.0120.00616.66
7.4.210.0090.00716.59
7.4.200.0030.00616.37
7.4.190.0000.00716.71
7.4.160.0070.01016.45
7.4.150.0070.01017.40
7.4.140.0150.00817.86
7.4.130.0060.01116.55
7.4.120.0060.01116.50
7.4.110.0140.00416.54
7.4.100.0180.00716.45
7.4.90.0070.01116.36
7.4.80.0140.00419.39
7.4.70.0130.01016.63
7.4.60.0030.01216.51
7.4.50.0060.00316.21
7.4.40.0040.01422.77
7.4.30.0140.00316.52
7.4.00.0070.01115.18
7.3.330.0050.00013.20
7.3.320.0050.00013.07
7.3.310.0070.00016.25
7.3.300.0030.00316.16
7.3.290.0150.00016.40
7.3.280.0100.00716.25
7.3.270.0040.01317.40
7.3.260.0130.01016.37
7.3.250.0110.00616.44
7.3.240.0100.00716.61
7.3.230.0160.00016.55
7.3.210.0100.01016.45
7.3.200.0000.01719.39
7.3.190.0030.01516.45
7.3.180.0090.00916.50
7.3.170.0090.00616.27
7.3.160.0040.01116.38
7.3.120.0060.00914.77
7.3.110.0030.01214.64
7.3.100.0130.00314.93
7.3.90.0040.01114.73
7.3.80.0000.01414.66
7.3.70.0060.00614.88
7.3.60.0100.00714.73
7.3.50.0030.01014.84
7.3.40.0080.00314.50
7.3.30.0000.01114.91
7.3.20.0030.00716.78
7.3.10.0020.01116.28
7.3.00.0040.01016.62
7.2.330.0030.01516.74
7.2.320.0090.01316.54
7.2.310.0070.01516.71
7.2.300.0070.01016.81
7.2.290.0100.00716.57
7.2.240.0060.01014.76
7.2.230.0100.00615.01
7.2.220.0070.01114.73
7.2.210.0100.00615.17
7.2.200.0030.01014.97
7.2.190.0000.01314.95
7.2.180.0070.00715.19
7.2.170.0090.00614.67
7.2.160.0030.01414.96
7.2.150.0100.00717.02
7.2.140.0030.01516.93
7.2.130.0070.00616.95
7.2.120.0080.00516.72
7.2.110.0060.00816.98
7.2.100.0080.00517.00
7.2.90.0030.00916.84
7.2.80.0050.01116.74
7.2.70.0020.01316.91
7.2.60.0060.00816.84
7.2.50.0040.00916.99
7.2.40.0080.00616.81
7.2.30.0080.00717.05
7.2.20.0030.01017.00
7.2.10.0110.00616.96
7.2.00.0020.01217.75
7.1.330.0030.01015.93
7.1.320.0000.01415.68
7.1.310.0070.00415.78
7.1.300.0080.00415.71
7.1.290.0070.00715.70
7.1.280.0040.00815.70
7.1.270.0070.00715.73
7.1.260.0070.01015.46
7.1.250.0090.00515.63
7.1.200.0060.00615.44
7.1.100.0120.00318.07
7.1.70.0030.01017.20
7.1.60.0130.01019.82
7.1.50.0070.01416.62
7.1.00.0000.08022.51
7.0.200.0000.00716.40
7.0.140.0000.07722.11
7.0.60.0070.06320.03
7.0.50.0100.04317.86
7.0.40.0030.05719.96
7.0.30.0270.08320.23
7.0.20.0200.05320.08
7.0.10.0270.05720.15
7.0.00.0000.08720.32
5.6.280.0070.07020.88
5.6.210.0100.06320.54
5.6.200.0100.07718.27
5.6.190.0030.04320.48
5.6.180.3200.04020.61
5.6.170.0330.07020.55
5.6.160.0070.08020.46
5.6.150.0130.07318.25
5.6.140.0070.06018.28
5.6.130.0070.03718.18
5.6.120.0030.05720.96
5.6.110.0130.07721.12
5.6.100.0230.08021.13
5.6.90.0200.07020.97
5.6.80.0070.05020.43
5.5.350.0030.08320.43
5.5.340.0130.07717.93
5.5.330.0070.06720.31
5.5.320.0130.04320.20
5.5.310.0100.04720.24
5.5.300.0100.08318.06
5.5.290.0070.05317.97
5.5.280.0070.08720.86
5.5.270.0070.06020.66
5.5.260.0130.07720.96
5.5.250.0070.08720.60
5.5.240.0130.05320.21
5.4.450.0530.06319.20
5.4.440.0570.06319.45
5.4.430.0100.05319.63
5.4.420.0170.06319.53
5.4.410.0070.05719.52
5.4.400.1100.00018.74
5.4.390.1200.00018.46
5.4.380.0170.05718.54
5.4.370.0200.05018.48
5.4.360.0370.04318.62
5.4.350.0300.05018.78
5.4.340.0200.06018.71
5.4.320.0080.03712.52
5.4.310.0080.03812.51
5.4.300.0070.04112.52
5.4.290.0070.03912.51
5.4.280.0070.03312.40
5.4.270.0030.06318.80
5.4.260.0100.06719.09
5.4.250.0170.04718.90
5.4.240.0170.06718.80
5.4.230.0130.07019.02
5.4.220.0000.06018.65
5.4.210.0070.05018.99
5.4.200.0100.07018.98
5.4.190.0030.06318.98
5.4.180.0170.08718.99
5.4.170.0070.06318.82
5.4.160.0170.04718.89
5.4.150.0200.06318.89
5.4.140.0000.06016.48
5.4.130.0130.06316.45
5.4.120.0100.05716.44
5.4.110.0170.04316.57
5.4.100.0030.07016.57
5.4.90.0070.06016.70
5.4.80.0100.06316.53
5.4.70.0070.06716.47
5.4.60.0100.07016.46
5.4.50.0130.04716.45
5.4.40.0170.04316.57
5.4.30.0030.05016.49
5.4.20.0070.07316.46
5.4.10.0030.07716.55
5.4.00.0130.06016.02
5.3.290.0060.04512.80
5.3.280.0130.04714.69
5.3.270.0130.04314.59
5.3.260.0000.08014.60
5.3.250.0130.05714.70
5.3.240.0000.05714.63
5.3.230.0130.05014.69
5.3.220.0130.04714.77
5.3.210.0000.06014.75
5.3.200.0130.06714.71
5.3.190.0000.06314.56
5.3.180.0030.06714.65
5.3.170.0100.04714.56
5.3.160.0000.05714.56
5.3.150.0070.05314.57
5.3.140.0200.06314.57
5.3.130.0170.04714.57
5.3.120.0030.06014.72
5.3.110.0030.07714.55
5.3.100.0070.07314.21
5.3.90.0130.05713.93
5.3.80.0100.04713.93
5.3.70.0030.05314.10
5.3.60.0100.06313.98
5.3.50.0200.05714.04
5.3.40.0100.06313.96
5.3.30.0070.05714.08
5.3.20.0030.05313.79
5.3.10.0030.07713.64
5.3.00.0070.05013.65
5.2.170.0030.05711.24
5.2.160.0030.04311.38
5.2.150.0000.05011.22
5.2.140.0070.05711.13
5.2.130.0030.04311.08
5.2.120.0170.02711.33
5.2.110.0070.04011.09
5.2.100.0100.05011.18
5.2.90.0030.05711.09
5.2.80.0130.03711.11
5.2.70.0170.04311.19
5.2.60.0170.04011.04
5.2.50.0100.03711.20
5.2.40.0030.04711.16
5.2.30.0100.04010.96
5.2.20.0000.06011.04
5.2.10.0000.05710.93
5.2.00.0100.04010.91
5.1.60.0000.03710.01
5.1.50.0030.04010.10
5.1.40.0030.03310.10
5.1.30.0170.03310.51
5.1.20.0070.04710.45
5.1.10.0030.0379.91
5.1.00.0000.05310.31
5.0.50.0100.0308.80
5.0.40.0030.0408.41
5.0.30.0030.0538.23
5.0.20.0000.0308.36
5.0.10.0070.0238.25
5.0.00.0030.0478.12
4.4.90.0030.0205.91
4.4.80.0000.0305.75
4.4.70.0030.0235.74
4.4.60.0030.0205.77
4.4.50.0000.0305.86
4.4.40.0070.0335.75
4.4.30.0000.0305.84
4.4.20.0000.0235.86
4.4.10.0070.0235.96
4.4.00.0030.0335.89
4.3.110.0000.0235.71
4.3.100.0000.0305.70
4.3.90.0000.0305.70
4.3.80.0000.0335.70
4.3.70.0000.0205.70
4.3.60.0070.0175.70
4.3.50.0070.0275.70
4.3.40.0070.0305.70
4.3.30.0070.0235.70
4.3.20.0170.0175.70
4.3.10.0000.0235.70
4.3.00.0130.0137.30

preferences:
38.7 ms | 401 KiB | 5 Q