3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Thing { } class Foo implements Thing { } class Bar extends Foo { } class Zulu { } var_dump( is_subclass_of('Foo', 'Thing'), is_a('Foo', 'Thing', TRUE), is_subclass_of('Bar', 'Thing'), is_a('Bar', 'Thing', TRUE), is_subclass_of('Zulu', 'Thing'), is_a('Zulu', 'Thing', TRUE), is_subclass_of('Foo', 'Foo'), is_a('Foo', 'Foo', 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.3.60.0150.00618.10
8.3.50.0130.00821.98
8.3.40.0040.01118.54
8.3.30.0180.00418.77
8.3.20.0100.00720.34
8.3.10.0080.00022.10
8.3.00.0030.00522.50
8.2.180.0180.00416.75
8.2.170.0090.00922.96
8.2.160.0100.00320.36
8.2.150.0040.00424.18
8.2.140.0070.01124.66
8.2.130.0080.01126.16
8.2.120.0060.00319.11
8.2.110.0040.00422.09
8.2.100.0090.00319.45
8.2.90.0080.00019.05
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0050.00317.80
8.2.50.0040.00418.07
8.2.40.0040.00418.22
8.2.30.0020.00517.96
8.2.20.0000.00817.62
8.2.10.0040.00417.76
8.2.00.0040.00417.61
8.1.280.0100.00325.92
8.1.270.0090.00922.02
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0000.00923.84
8.1.230.0030.00718.76
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0000.00817.26
8.1.180.0040.00418.10
8.1.170.0070.00018.49
8.1.160.0040.00422.02
8.1.150.0000.00718.59
8.1.140.0000.00717.31
8.1.130.0070.00017.69
8.1.120.0040.00417.46
8.1.110.0050.00317.41
8.1.100.0050.00217.37
8.1.90.0000.00817.28
8.1.80.0080.00017.40
8.1.70.0000.00717.29
8.1.60.0040.00417.43
8.1.50.0040.00417.46
8.1.40.0050.00317.43
8.1.30.0040.00417.50
8.1.20.0000.00817.60
8.1.10.0050.00217.29
8.1.00.0040.00417.37
8.0.300.0040.00418.77
8.0.290.0040.00417.16
8.0.280.0070.00018.39
8.0.270.0000.00717.19
8.0.260.0000.00716.68
8.0.250.0000.00616.81
8.0.240.0000.00716.79
8.0.230.0040.00416.80
8.0.220.0030.00316.84
8.0.210.0000.00916.82
8.0.200.0070.00016.88
8.0.190.0070.00016.80
8.0.180.0070.00016.87
8.0.170.0040.00416.91
8.0.160.0040.00416.85
8.0.150.0000.00716.90
8.0.140.0040.00416.81
8.0.130.0030.00313.19
8.0.120.0000.00716.79
8.0.110.0000.00716.76
8.0.100.0070.00016.73
8.0.90.0040.00416.65
8.0.80.0070.00816.73
8.0.70.0000.00716.68
8.0.60.0040.00316.72
8.0.50.0040.00416.71
8.0.30.0080.01117.00
8.0.20.0130.00617.40
8.0.10.0000.00716.95
8.0.00.0140.00916.63
7.4.330.0050.00015.13
7.4.320.0040.00416.55
7.4.300.0070.00016.43
7.4.290.0000.00716.39
7.4.280.0080.00016.43
7.4.270.0070.00016.55
7.4.260.0040.00416.45
7.4.250.0070.00016.36
7.4.240.0040.00416.43
7.4.230.0000.00716.43
7.4.220.0090.00916.48
7.4.210.0050.01116.43
7.4.200.0030.00316.57
7.4.190.0000.00716.63
7.4.160.0090.00616.32
7.4.150.0070.01117.40
7.4.140.0140.00317.86
7.4.130.0110.01016.32
7.4.120.0080.01016.53
7.4.110.0070.01016.35
7.4.100.0060.01216.40
7.4.90.0100.00716.38
7.4.80.0090.00919.39
7.4.70.0060.01616.54
7.4.60.0120.00616.47
7.4.50.0000.00816.31
7.4.40.0100.00722.77
7.4.30.0040.01216.39
7.4.00.0000.01814.88
7.3.330.0050.00013.24
7.3.320.0050.00013.24
7.3.310.0000.00616.29
7.3.300.0000.00616.13
7.3.290.0100.00316.23
7.3.280.0090.00816.26
7.3.270.0070.01017.40
7.3.260.0110.00716.56
7.3.250.0050.01116.41
7.3.240.0060.01016.44
7.3.230.0080.01116.39
7.3.210.0080.00816.41
7.3.200.0040.01419.39
7.3.190.0060.01516.39
7.3.180.0120.00416.37
7.3.170.0130.00316.27
7.3.160.0080.00816.29
7.3.120.0060.00914.95
7.3.10.0180.00315.66
7.3.00.0200.00415.91
7.2.330.0110.00716.72
7.2.320.0130.01316.49
7.2.310.0180.00816.21
7.2.300.0040.01216.65
7.2.290.0030.01316.45
7.2.130.0170.00716.13
7.2.120.0130.01016.14
7.2.110.0100.01015.85
7.2.100.0110.00516.21
7.2.90.0160.00316.11
7.2.80.0060.01216.38
7.2.70.0200.00316.41
7.2.60.0100.00616.45
7.2.50.0150.00715.63
7.2.40.0160.00016.20
7.2.30.0160.00515.96
7.2.20.0070.01016.02
7.2.10.0110.00616.12
7.2.00.0160.00016.24
7.1.250.0200.00314.94
7.1.200.0060.00615.61
7.1.100.0000.01617.88
7.1.70.0030.00516.88
7.1.60.0090.01619.82
7.1.50.0060.01916.80
7.1.00.0100.07022.35
7.0.200.0040.00416.70
7.0.140.0030.09322.15
7.0.60.0100.07719.96
7.0.50.0070.07717.92
7.0.40.0070.08720.12
7.0.30.0470.06020.31
7.0.20.0300.07720.24
7.0.10.0200.06020.15
7.0.00.0030.09020.18
5.6.210.0130.07320.69
5.6.200.0130.07318.27
5.6.190.0100.03720.55
5.6.180.4330.03720.55
5.6.170.0200.07020.71
5.6.160.0030.06320.55
5.6.150.0000.04318.14
5.6.140.0030.08318.23
5.6.130.0030.04718.27
5.6.120.0030.08720.98
5.6.110.0070.09021.00
5.6.100.0070.08321.02
5.6.90.0030.04021.00
5.6.80.0100.07320.48
5.6.70.4370.04020.41
5.5.350.0070.08320.50
5.5.340.0100.06317.99
5.5.330.0200.07020.35
5.5.320.0230.04720.28
5.5.310.0270.08020.34
5.5.300.0000.09018.08
5.5.290.0070.07717.97
5.5.280.0070.04320.65
5.5.270.0200.03720.76
5.5.260.0170.07720.79
5.5.250.0100.03320.58
5.5.240.0070.08020.29
5.4.450.0070.06019.48
5.4.440.0700.06319.60
5.4.430.0070.06019.38
5.4.420.0130.05319.52
5.4.410.0030.05719.57
5.4.400.0030.05718.51
5.4.390.0070.05318.75
5.4.380.0330.04718.58
5.4.370.0100.06018.46
5.4.360.0170.05018.75
5.4.350.0230.04718.59
5.4.340.0100.05318.79
5.4.320.0050.03612.50
5.4.310.0070.03812.50
5.4.300.0040.03812.50
5.4.290.0060.03812.49
5.4.280.0050.03712.39
5.4.270.0070.05718.80
5.4.260.0130.05319.01
5.4.250.0200.07319.09
5.4.240.0130.04718.96
5.4.230.0170.04719.00
5.4.220.0230.06019.09
5.4.210.0270.06018.80
5.4.200.0200.06718.74
5.4.190.0130.07719.08
5.4.180.0200.05318.93
5.4.170.0170.07318.65
5.4.160.0100.07718.92
5.4.150.0130.05718.99
5.4.140.0170.04716.64
5.4.130.0130.04316.61
5.4.120.0100.05316.53
5.4.110.0170.07716.67
5.4.100.0130.06016.48
5.4.90.0100.04716.67
5.4.80.0070.05316.45
5.4.70.0170.05716.52
5.4.60.0200.06016.47
5.4.50.0100.06716.57
5.4.40.0100.06716.52
5.4.30.0100.06316.46
5.4.20.0200.05016.39
5.4.10.0170.06716.41
5.4.00.0130.06715.96
5.3.290.0070.03812.80
5.3.280.0300.05314.50
5.3.270.0170.04714.60
5.3.260.0030.08014.59
5.3.250.0070.05314.78
5.3.240.0130.07314.73
5.3.230.0200.06314.58
5.3.220.0030.06314.64
5.3.210.0130.06014.57
5.3.200.0100.04714.64
5.3.190.0100.05314.65
5.3.180.0130.06014.56
5.3.170.0170.05714.62
5.3.160.0030.06314.74
5.3.150.0030.06014.59
5.3.140.0170.06714.54
5.3.130.0070.06014.52
5.3.120.0130.06314.68
5.3.110.0200.06014.45
5.3.100.0070.06014.17
5.3.90.0070.05714.00
5.3.80.0200.05713.84
5.3.70.0100.04713.92
5.3.60.0070.05014.08
5.3.50.0070.05014.03
5.3.40.0130.06013.93
5.3.30.0170.05314.13
5.3.20.0070.05313.86
5.3.10.0070.05313.82
5.3.00.0070.05313.70
5.2.170.0200.03311.21
5.2.160.0200.02711.14
5.2.150.0030.04711.36
5.2.140.0100.05311.23
5.2.130.0100.04311.18
5.2.120.0000.04710.93
5.2.110.0100.04011.26
5.2.100.0100.04011.16
5.2.90.0070.05711.28
5.2.80.0070.04311.30
5.2.70.0030.04311.05
5.2.60.0130.03710.87
5.2.50.0130.05011.19
5.2.40.0100.05010.98
5.2.30.0070.04011.04
5.2.20.0000.04710.94
5.2.10.0030.04710.84
5.2.00.0130.04710.55
5.1.60.0070.03710.00
5.1.50.0070.0339.95
5.1.40.0170.0379.97
5.1.30.0030.04710.41
5.1.20.0030.05010.57
5.1.10.0130.03710.02
5.1.00.0070.03310.13
5.0.50.0000.0438.50
5.0.40.0000.0378.34
5.0.30.0070.0478.05
5.0.20.0070.0278.15
5.0.10.0070.0278.41
5.0.00.0000.0438.35
4.4.90.0030.0236.79
4.4.80.0030.0206.79
4.4.70.0070.0276.79
4.4.60.0000.0276.78
4.4.50.0070.0236.76
4.4.40.0130.0276.81
4.4.30.0000.0306.81
4.4.20.0130.0206.81
4.4.10.0000.0276.81
4.4.00.0030.0436.81
4.3.110.0000.0236.81
4.3.100.0030.0276.81
4.3.90.0030.0306.81
4.3.80.0000.0376.81
4.3.70.0030.0206.81
4.3.60.0070.0236.81
4.3.50.0000.0276.81
4.3.40.0070.0276.81
4.3.30.0100.0236.81
4.3.20.0030.0206.81
4.3.10.0070.0176.81
4.3.00.0100.0236.36

preferences:
41.54 ms | 400 KiB | 5 Q