3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I {} class A {} class B {} class C extends A implements I {} var_dump(is_a('C', 'C', true), is_a('C', 'I', true), is_a('C', 'A', true), is_a('C', 'B', true));

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.4.10.0000.01617.60
8.3.140.0080.00016.44
8.3.130.0080.00018.37
8.3.120.0060.00319.10
8.3.110.0030.00620.94
8.3.100.0130.00316.63
8.3.90.0030.00518.57
8.3.80.0090.00018.21
8.3.70.0150.00016.58
8.3.60.0150.00618.18
8.3.50.0130.01022.05
8.3.40.0130.00718.71
8.3.30.0140.00018.76
8.3.20.0140.00320.21
8.3.10.0090.00021.73
8.3.00.0030.00619.26
8.2.250.0040.00416.23
8.2.240.0060.01216.93
8.2.230.0030.00522.58
8.2.220.0040.01224.06
8.2.210.0000.00826.77
8.2.200.0060.00316.63
8.2.190.0140.00716.58
8.2.180.0070.00725.92
8.2.170.0070.00718.88
8.2.160.0070.00722.96
8.2.150.0000.00725.66
8.2.140.0100.01024.66
8.2.130.0030.00526.16
8.2.120.0090.00019.36
8.2.110.0100.00022.27
8.2.100.0140.00017.69
8.2.90.0040.00417.91
8.2.80.0040.00418.98
8.2.70.0060.00317.50
8.2.60.0080.00017.80
8.2.50.0000.00918.07
8.2.40.0080.00017.82
8.2.30.0050.00317.88
8.2.20.0080.00017.71
8.2.10.0040.00418.04
8.2.00.0000.00717.98
8.1.300.0000.01117.38
8.1.290.0000.00818.88
8.1.280.0060.00925.92
8.1.270.0030.00624.66
8.1.260.0020.00526.35
8.1.250.0030.00628.09
8.1.240.0060.00320.94
8.1.230.0080.00423.96
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00316.88
8.1.190.0050.00317.10
8.1.180.0000.00818.10
8.1.170.0040.00418.48
8.1.160.0040.00418.72
8.1.150.0000.00718.82
8.1.140.0050.00217.39
8.1.130.0000.00717.63
8.1.120.0050.00217.39
8.1.110.0050.00517.42
8.1.100.0030.00317.40
8.1.90.0070.00317.42
8.1.80.0000.00817.39
8.1.70.0030.00317.44
8.1.60.0090.00017.42
8.1.50.0050.00317.43
8.1.40.0000.00717.46
8.1.30.0040.00417.49
8.1.20.0040.00417.55
8.1.10.0040.00417.37
8.1.00.0000.00717.29
8.0.300.0040.00420.07
8.0.290.0000.00716.63
8.0.280.0040.00418.22
8.0.270.0070.00017.15
8.0.260.0030.00317.20
8.0.250.0030.00316.78
8.0.240.0030.00516.75
8.0.230.0000.00816.87
8.0.220.0070.00016.69
8.0.210.0030.00316.86
8.0.200.0030.00316.86
8.0.190.0000.00716.87
8.0.180.0030.00516.74
8.0.170.0060.00316.90
8.0.160.0000.00716.57
8.0.150.0030.00516.66
8.0.140.0000.00816.74
8.0.130.0030.00313.26
8.0.120.0040.00416.71
8.0.110.0040.00416.65
8.0.100.0040.00416.81
8.0.90.0000.00716.70
8.0.80.0090.00616.79
8.0.70.0000.00716.77
8.0.60.0030.00516.69
8.0.50.0080.00016.80
8.0.30.0100.00817.00
8.0.20.0170.00317.40
8.0.10.0000.00716.73
8.0.00.0130.00516.68
7.4.330.0020.00215.08
7.4.320.0070.00016.48
7.4.300.0080.00016.43
7.4.290.0000.00716.43
7.4.280.0000.00716.42
7.4.270.0070.00016.38
7.4.260.0030.00316.40
7.4.250.0030.00316.29
7.4.240.0010.00616.47
7.4.230.0020.00516.50
7.4.220.0030.00316.27
7.4.210.0060.01016.54
7.4.200.0000.00716.64
7.4.160.0140.00316.25
7.4.150.0130.00317.40
7.4.140.0100.00917.86
7.4.130.0090.01216.29
7.4.120.0070.01016.50
7.4.110.0120.01216.25
7.4.100.0040.01516.48
7.4.90.0040.01416.45
7.4.80.0040.01419.39
7.4.70.0130.00316.48
7.4.60.0130.00316.49
7.4.50.0000.00516.25
7.4.40.0140.00716.44
7.4.30.0140.00916.35
7.4.00.0060.00914.94
7.3.330.0060.00415.47
7.3.320.0000.00513.10
7.3.310.0050.00216.27
7.3.300.0000.00716.12
7.3.290.0030.00316.11
7.3.280.0100.00716.24
7.3.270.0150.00317.40
7.3.260.0100.01316.22
7.3.250.0110.00616.33
7.3.240.0100.00616.57
7.3.230.0060.01516.44
7.3.210.0070.01616.43
7.3.200.0030.01619.39
7.3.190.0040.01416.21
7.3.180.0070.01016.29
7.3.170.0100.01016.44
7.3.160.0060.00916.39
7.3.10.0040.01216.36
7.3.00.0090.00316.64
7.2.330.0090.00816.36
7.2.320.0050.01416.58
7.2.310.0080.00916.50
7.2.300.0070.01016.58
7.2.290.0060.01616.25
7.2.130.0070.01016.80
7.2.120.0030.01216.91
7.2.110.0030.00816.50
7.2.100.0040.00716.77
7.2.90.0060.00616.78
7.2.80.0030.00716.73
7.2.70.0040.00816.90
7.2.60.0080.00416.72
7.2.50.0040.00816.50
7.2.40.0050.00616.86
7.2.30.0030.00816.73
7.2.20.0060.00916.78
7.2.10.0040.00716.70
7.2.00.0030.00718.12
7.1.250.0050.00915.91
7.1.200.0080.00415.81
7.1.100.0030.01018.07
7.1.70.0060.00316.78
7.1.60.0040.01419.59
7.1.50.0130.01016.85
7.1.00.0000.08022.40
7.0.200.0000.01016.68
7.0.60.0330.06320.01
7.0.50.0130.07717.88
7.0.40.0070.08720.18
7.0.30.0230.05320.17
7.0.20.0230.08020.12
7.0.10.0130.07320.23
7.0.00.0130.05320.11
5.6.280.0030.07320.91
5.6.210.0030.06020.51
5.6.200.0070.08318.25
5.6.190.0070.04020.39
5.6.180.0530.07020.77
5.6.170.0200.04020.57
5.6.160.0070.05020.46
5.6.150.0030.06018.15
5.6.140.0070.04018.28
5.6.130.0070.05718.13
5.6.120.0170.05021.00
5.6.110.0030.09321.17
5.6.100.0070.08321.04
5.6.90.0130.08020.97
5.6.80.0130.06720.39
5.5.350.4170.03320.35
5.5.340.0070.08318.08
5.5.330.0170.07320.47
5.5.320.0270.07720.35
5.5.310.0270.08020.20
5.5.300.0130.07317.97
5.5.290.0130.04718.04
5.5.280.0100.07720.84
5.5.270.0030.05320.83
5.5.260.0070.08720.75
5.5.250.0070.03720.68
5.5.240.0070.07320.15
5.4.450.0370.03719.55
5.4.440.0330.04019.39
5.4.430.0470.05319.56
5.4.420.0370.04019.38
5.4.410.0300.04019.07
5.4.400.0300.04019.23
5.4.390.0400.04318.88
5.4.380.0330.03719.05
5.4.370.0330.04319.20
5.4.360.0270.04319.06
5.4.350.0330.04319.16
5.4.340.0430.03318.98
5.4.320.0300.04018.87
5.4.310.0370.04718.95
5.4.300.0330.04718.83
5.4.290.0430.07018.99
5.4.280.0370.06719.14
5.4.270.0300.04319.31
5.4.260.0330.03718.98
5.4.250.0500.05719.23
5.4.240.0330.03719.00
5.4.230.0430.06718.91
5.4.220.0330.04318.99
5.4.210.0300.06319.23
5.4.200.0430.05319.29
5.4.190.0300.05319.12
5.4.180.0370.07319.13
5.4.170.0430.06019.05
5.4.160.0300.05018.97
5.4.150.0370.03319.07
5.4.140.0400.06316.42
5.4.130.0330.03016.54
5.4.120.0370.05316.47
5.4.110.0370.03316.56
5.4.100.0370.03316.32
5.4.90.0300.03316.39
5.4.80.0330.03716.62
5.4.70.0400.03716.57
5.4.60.0470.06016.22
5.4.50.0330.04316.34
5.4.40.0430.06316.52
5.4.30.0330.03316.51
5.4.20.0270.04716.54
5.4.10.0270.04716.45
5.4.00.0330.03315.82
5.3.290.0430.04314.67
5.3.280.0470.06714.70
5.3.270.0430.05714.63
5.3.260.0330.04314.66
5.3.250.0400.03714.50
5.3.240.0430.06014.85
5.3.230.0530.06014.52
5.3.220.0400.04014.57
5.3.210.0370.04014.46
5.3.200.0400.04014.57
5.3.190.0400.03314.57
5.3.180.0230.04314.64
5.3.170.0370.04714.56
5.3.160.0330.04714.63
5.3.150.0330.04014.64
5.3.140.0370.03714.68
5.3.130.0400.05714.56
5.3.120.0400.05014.63
5.3.110.0370.05714.52
5.3.100.0370.04014.15
5.3.90.0400.04014.10
5.3.80.0370.03714.02
5.3.70.0500.04013.94
5.3.60.0430.05713.92
5.3.50.0430.03713.92
5.3.40.0400.04713.92
5.3.30.0330.05013.81
5.3.20.0500.02713.62
5.3.10.0330.04313.56
5.3.00.0370.06713.64
5.2.170.0270.03711.12
5.2.160.0330.02011.07
5.2.150.0270.02711.26
5.2.140.0330.05711.22
5.2.130.0330.05011.19
5.2.120.0330.05711.01
5.2.110.0300.05011.02
5.2.100.0370.05311.34
5.2.90.0430.04311.03
5.2.80.0370.05011.21
5.2.70.0370.05311.05
5.2.60.0370.03010.95
5.2.50.0330.05010.98
5.2.40.0200.03310.89
5.2.30.0330.05010.97
5.2.20.0200.06011.07
5.2.10.0300.02010.84
5.2.00.0170.03310.66
5.1.60.0230.02010.15
5.1.50.0230.0409.92
5.1.40.0230.0309.96
5.1.30.0300.04310.26
5.1.20.0230.04010.57
5.1.10.0230.04710.05
5.1.00.0330.04710.17
5.0.50.0100.0278.43
5.0.40.0200.0378.31
5.0.30.0130.0438.15
5.0.20.0130.0378.18
5.0.10.0070.0238.07
5.0.00.0170.0538.04
4.4.90.0070.0177.39
4.4.80.0130.0107.39
4.4.70.0130.0337.39
4.4.60.0170.0277.39
4.4.50.0270.0177.40
4.4.40.0170.0507.41
4.4.30.0200.0337.41
4.4.20.0130.0207.41
4.4.10.0170.0137.41
4.4.00.0170.0277.42
4.3.110.0230.0277.45
4.3.100.0200.0237.45
4.3.90.0230.0177.45
4.3.80.0130.0307.45
4.3.70.0200.0107.46
4.3.60.0100.0207.47
4.3.50.0130.0137.48
4.3.40.0070.0337.49
4.3.30.0070.0177.49
4.3.20.0070.0207.49
4.3.10.0070.0177.50
4.3.00.0070.0177.52

preferences:
41.41 ms | 403 KiB | 5 Q