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.0070.00718.43
8.3.50.0110.00921.91
8.3.40.0070.01018.86
8.3.30.0090.00919.09
8.3.20.0030.00620.27
8.3.10.0060.00321.92
8.3.00.0000.00822.42
8.2.180.0090.00916.63
8.2.170.0170.00322.96
8.2.160.0120.00318.79
8.2.150.0100.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00726.16
8.2.120.0040.00417.63
8.2.110.0000.01022.20
8.2.100.0080.00317.78
8.2.90.0050.00319.83
8.2.80.0040.00420.36
8.2.70.0030.00617.50
8.2.60.0000.00818.02
8.2.50.0000.00818.07
8.2.40.0050.00317.91
8.2.30.0000.00718.18
8.2.20.0000.00817.59
8.2.10.0040.00419.46
8.2.00.0030.00619.39
8.1.280.0150.00325.92
8.1.270.0000.00822.00
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00322.08
8.1.230.0040.00823.91
8.1.220.0000.00817.79
8.1.210.0000.00818.97
8.1.200.0090.00317.35
8.1.190.0050.00317.53
8.1.180.0030.00618.71
8.1.170.0040.00418.50
8.1.160.0030.00622.06
8.1.150.0000.00818.57
8.1.140.0030.00617.34
8.1.130.0040.00417.84
8.1.120.0040.00417.45
8.1.110.0000.00717.43
8.1.100.0070.00017.35
8.1.90.0040.00417.50
8.1.80.0030.00317.38
8.1.70.0030.00317.42
8.1.60.0060.00317.50
8.1.50.0000.00717.57
8.1.40.0040.00417.53
8.1.30.0040.00417.56
8.1.20.0060.00317.70
8.1.10.0040.00417.61
8.1.00.0040.00417.57
8.0.300.0040.00420.05
8.0.290.0000.00717.18
8.0.280.0000.00718.50
8.0.270.0030.00317.30
8.0.260.0030.00316.69
8.0.250.0040.00416.94
8.0.240.0040.00416.92
8.0.230.0000.00716.86
8.0.220.0040.00416.91
8.0.210.0000.00716.91
8.0.200.0030.00316.98
8.0.190.0080.00016.97
8.0.180.0000.00716.95
8.0.170.0040.00416.94
8.0.160.0040.00416.82
8.0.150.0030.00316.86
8.0.140.0000.00716.88
8.0.130.0040.00413.33
8.0.120.0030.00616.89
8.0.110.0040.00416.90
8.0.100.0000.00716.89
8.0.90.0000.00717.02
8.0.80.0120.00916.95
8.0.70.0040.00416.85
8.0.60.0000.00716.87
8.0.50.0070.00016.74
8.0.30.0020.02117.14
8.0.20.0120.00517.40
8.0.10.0040.00417.07
8.0.00.0120.00716.63
7.4.330.0000.00515.08
7.4.320.0000.00616.57
7.4.300.0000.00616.52
7.4.290.0030.00316.53
7.4.280.0000.00616.51
7.4.270.0000.00716.53
7.4.260.0030.00316.64
7.4.250.0000.00816.66
7.4.240.0060.00216.64
7.4.230.0050.00216.62
7.4.220.0030.01416.41
7.4.210.0090.00716.51
7.4.200.0000.00816.60
7.4.190.0030.00316.42
7.4.160.0120.00316.41
7.4.150.0070.01017.40
7.4.140.0080.01117.86
7.4.130.0110.00916.58
7.4.120.0080.00816.54
7.4.110.0060.01016.50
7.4.100.0100.01416.68
7.4.90.0100.00716.46
7.4.80.0030.01319.39
7.4.70.0130.00416.52
7.4.60.0090.01216.27
7.4.50.0050.00316.59
7.4.40.0070.01122.77
7.4.30.0090.00616.52
7.4.10.0030.01914.89
7.4.00.0030.01315.04
7.3.330.0000.00613.33
7.3.320.0030.00313.02
7.3.310.0030.00416.31
7.3.300.0070.00016.32
7.3.290.0100.00916.27
7.3.280.0080.00916.26
7.3.270.0120.00617.40
7.3.260.0070.01016.34
7.3.250.0100.00716.38
7.3.240.0080.00816.17
7.3.230.0070.01116.46
7.3.210.0060.01016.39
7.3.200.0120.00319.39
7.3.190.0060.01616.51
7.3.180.0030.01216.33
7.3.170.0090.00916.27
7.3.160.0080.00816.20
7.3.130.0120.00914.51
7.3.120.0060.01114.80
7.3.110.0090.00614.75
7.3.100.0000.01514.71
7.3.90.0090.00614.93
7.3.80.0070.00714.75
7.3.70.0030.00914.64
7.3.60.0030.01014.59
7.3.50.0090.00614.75
7.3.40.0060.00314.73
7.3.30.0080.00814.46
7.3.20.0090.00616.62
7.3.10.0030.01016.52
7.3.00.0000.00916.22
7.2.330.0160.00016.63
7.2.320.0080.01216.73
7.2.310.0080.00816.79
7.2.300.0030.01416.71
7.2.290.0130.00316.56
7.2.260.0030.01715.26
7.2.250.0030.01015.19
7.2.240.0030.01014.97
7.2.230.0090.00614.56
7.2.220.0080.00815.11
7.2.210.0070.01315.01
7.2.200.0110.00314.98
7.2.190.0000.01015.09
7.2.180.0050.00514.79
7.2.170.0040.00414.78
7.2.160.0040.01215.15
7.2.150.0100.00316.92
7.2.140.0110.00416.73
7.2.130.0040.01216.95
7.2.120.0000.00916.99
7.2.110.0000.01516.92
7.2.100.0060.01016.94
7.2.90.0030.00716.80
7.2.80.0050.00517.04
7.2.70.0070.01116.90
7.2.60.0150.00516.85
7.2.50.0080.00417.04
7.2.40.0040.01116.98
7.2.30.0040.01416.59
7.2.20.0080.00616.86
7.2.10.0060.00616.62
7.2.00.0080.00818.32
7.1.330.0100.00715.69
7.1.320.0070.01115.51
7.1.310.0060.00615.75
7.1.300.0100.00315.65
7.1.290.0070.00315.66
7.1.280.0070.00715.67
7.1.270.0030.01015.66
7.1.260.0090.00615.58
7.1.250.0000.01315.39
7.1.240.0040.00415.80
7.1.230.0040.01115.85
7.1.220.0070.00715.41
7.1.210.0060.00615.59
7.1.200.0050.00715.72
7.1.190.0100.00315.77
7.1.180.0090.00915.57
7.1.170.0060.00815.70
7.1.160.0000.01015.70
7.1.150.0070.00715.67
7.1.140.0030.01015.64
7.1.130.0030.01015.42
7.1.120.0000.01115.63
7.1.110.0060.00915.66
7.1.100.0080.00816.92
7.1.90.0070.00715.64
7.1.80.0070.00715.36
7.1.70.0060.00616.33
7.1.60.0050.01017.74
7.1.50.0030.01416.27
7.1.40.0030.01015.89
7.1.30.0030.00615.62
7.1.20.0030.00715.61
7.1.10.0030.01015.43
7.1.00.0070.04019.05
7.0.330.0030.00715.18
7.0.320.0130.00315.27
7.0.310.0030.00915.01
7.0.300.0040.00815.08
7.0.290.0070.00715.02
7.0.280.0060.00915.12
7.0.270.0070.00715.33
7.0.260.0040.00815.21
7.0.250.0100.00315.29
7.0.240.0040.00415.44
7.0.230.0070.00715.37
7.0.220.0090.00615.34
7.0.210.0090.00315.32
7.0.200.0060.00316.06
7.0.190.0060.00315.42
7.0.180.0030.00915.33
7.0.170.0030.01015.50
7.0.160.0040.00415.40
7.0.150.0140.00015.05
7.0.140.0020.04218.66
7.0.130.0080.00415.30
7.0.120.0090.00615.05
7.0.110.0120.00015.21
7.0.100.0110.00315.37
7.0.90.0040.01115.36
7.0.80.0070.00715.38
7.0.70.0000.01315.28
7.0.60.0080.03617.74
7.0.50.0080.02516.70
7.0.40.0100.04516.82
7.0.30.0150.02516.74
7.0.20.0230.02816.70
7.0.10.0150.05216.73
7.0.00.0100.03516.53
5.6.400.0120.00614.70
5.6.390.0070.00714.61
5.6.380.0000.00914.68
5.6.370.0030.01314.23
5.6.360.0030.01214.21
5.6.350.0090.00614.12
5.6.340.0090.00614.44
5.6.330.0040.00714.68
5.6.320.0000.01214.47
5.6.310.0000.00914.47
5.6.300.0040.00814.25
5.6.290.0120.00314.60
5.6.280.0050.04017.57
5.6.270.0080.00314.46
5.6.260.0090.00614.25
5.6.250.0080.00514.37
5.6.240.0040.01114.11
5.6.230.0030.00914.27
5.6.220.0040.00814.37
5.6.210.0100.04317.47
5.6.200.0050.03816.24
5.6.190.0070.02517.41
5.6.180.0120.03617.37
5.6.170.0180.04117.44
5.6.160.0070.03917.46
5.6.150.0030.02516.29
5.6.140.0070.02216.37
5.6.130.0040.03616.17
5.6.120.0140.03317.74
5.6.110.0050.03117.63
5.6.100.0060.04617.56
5.6.90.0050.04217.66
5.6.80.0070.04517.27
5.6.70.0240.03417.28
5.6.60.0100.00714.05
5.6.50.0030.01014.20
5.6.40.0060.00314.12
5.6.30.0000.00914.39
5.6.20.0100.01014.23
5.6.10.0180.00014.55
5.6.00.0030.01314.33
5.5.380.0070.00714.57
5.5.370.0110.00014.28
5.5.360.0000.01314.54
5.5.350.0220.03717.34
5.5.340.0000.02816.15
5.5.330.0000.03117.33
5.5.320.0180.04017.40
5.5.310.0150.04417.39
5.5.300.0100.04116.13
5.5.290.0070.02416.06
5.5.280.0100.02317.64
5.5.270.0100.01917.61
5.5.260.0070.03817.59
5.5.250.0070.03817.58
5.5.240.0050.03617.18
5.5.230.0040.01114.25
5.5.220.0080.00513.98
5.5.210.0060.00914.38
5.5.200.0070.00713.96
5.5.190.0110.00413.99
5.5.180.0000.01314.04
5.5.170.0030.01414.25
5.5.160.0030.00914.37
5.5.150.0030.00714.38
5.5.140.0160.00014.22
5.5.130.0080.00413.91
5.5.120.0000.01013.75
5.5.110.0000.00914.20
5.5.100.0030.00814.12
5.5.90.0090.00014.34
5.5.80.0000.00913.99
5.5.70.0030.01314.09
5.5.60.0040.00814.09
5.5.50.0030.00914.00
5.5.40.0040.00814.04
5.5.30.0100.01014.16
5.5.20.0100.01014.27
5.5.10.0000.01014.39
5.5.00.0030.00913.96
5.4.450.0150.03015.26
5.4.440.0150.03215.27
5.4.430.0370.03015.20
5.4.420.0110.03615.22
5.4.410.0030.03614.95
5.4.400.0930.00314.68
5.4.390.0770.00414.78
5.4.380.0180.03214.80
5.4.370.0180.02314.84
5.4.360.0150.02514.94
5.4.350.0190.02514.74
5.4.340.0130.02814.82
5.4.330.0030.01211.06
5.4.320.0060.02411.78
5.4.310.0050.02511.91
5.4.300.0070.02111.80
5.4.290.0040.02711.86
5.4.280.0040.02111.71
5.4.270.0020.04714.86
5.4.260.0080.03314.99
5.4.250.0130.03514.83
5.4.240.0050.03815.04
5.4.230.0000.04714.96
5.4.220.0070.03715.09
5.4.210.0080.02814.80
5.4.200.0100.03214.77
5.4.190.0080.03014.88
5.4.180.0130.02514.93
5.4.170.0080.02614.89
5.4.160.0070.03515.04
5.4.150.0080.03014.95
5.4.140.0090.03313.81
5.4.130.0090.02513.82
5.4.120.0030.03013.73
5.4.110.0090.02613.66
5.4.100.0040.03213.69
5.4.90.0030.02813.69
5.4.80.0050.02813.79
5.4.70.0110.02213.78
5.4.60.0130.02013.66
5.4.50.0060.02813.84
5.4.40.0090.03213.86
5.4.30.0050.03013.71
5.4.20.0080.02513.58
5.4.10.0050.02613.79
5.4.00.0050.03313.48
5.3.290.0040.02611.64
5.3.280.0020.04212.48
5.3.270.0070.03912.61
5.3.260.0060.04112.54
5.3.250.0050.03112.68
5.3.240.0030.03312.52
5.3.230.0080.03312.60
5.3.220.0050.03612.51
5.3.210.0120.03312.28
5.3.200.0030.02812.48
5.3.190.0060.02612.58
5.3.180.0050.02912.56
5.3.170.0170.02012.72
5.3.160.0070.03012.62
5.3.150.0150.02812.61
5.3.140.0050.03512.70
5.3.130.0080.03812.63
5.3.120.0080.03012.55
5.3.110.0070.02812.36
5.3.100.0060.03712.32
5.3.90.0090.03512.30
5.3.80.0030.03712.29
5.3.70.0060.02612.11
5.3.60.0110.03012.19
5.3.50.0120.02412.24
5.3.40.0080.03312.28
5.3.30.0070.02312.36
5.3.20.0070.02512.15
5.3.10.0060.03012.01
5.3.00.0050.03411.88
5.2.170.0100.04311.33
5.2.160.0000.04311.05
5.2.150.0030.05011.23
5.2.140.0070.05311.21
5.2.130.0070.05711.18
5.2.120.0030.04311.08
5.2.110.0100.03711.33
5.2.100.0030.04011.09
5.2.90.0100.04011.17
5.2.80.0030.04710.93
5.2.70.0100.04311.19
5.2.60.0070.04710.96
5.2.50.0170.04010.93
5.2.40.0070.05311.22
5.2.30.0100.05310.89
5.2.20.0100.03710.95
5.2.10.0100.04710.83
5.2.00.0000.05710.64
5.1.60.0030.0339.93
5.1.50.0030.03710.25
5.1.40.0070.03010.23
5.1.30.0100.03710.31
5.1.20.0000.05310.53
5.1.10.0030.03710.02
5.1.00.0100.0409.92
5.0.50.0000.0308.66
5.0.40.0100.0338.52
5.0.30.0070.0538.29
5.0.20.0100.0238.12
5.0.10.0030.0278.25
5.0.00.0030.0438.14
4.4.90.0030.0305.93
4.4.80.0030.0235.93
4.4.70.0030.0305.93
4.4.60.0000.0235.93
4.4.50.0100.0135.93
4.4.40.0030.0335.93
4.4.30.0070.0235.93
4.4.20.0000.0335.93
4.4.10.0030.0205.93
4.4.00.0070.0305.93
4.3.110.0030.0275.93
4.3.100.0100.0135.93
4.3.90.0030.0305.93
4.3.80.0000.0475.93
4.3.70.0030.0275.93
4.3.60.0100.0175.93
4.3.50.0000.0235.93
4.3.40.0030.0335.93
4.3.30.0030.0205.93
4.3.20.0000.0235.93
4.3.10.0030.0275.93
4.3.00.0030.0206.88

preferences:
63.96 ms | 401 KiB | 5 Q