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.0160.00318.43
8.3.50.0060.00921.14
8.3.40.0040.01118.73
8.3.30.0090.00618.96
8.3.20.0080.00020.29
8.3.10.0060.00322.09
8.3.00.0060.00322.32
8.2.180.0110.00716.32
8.2.170.0040.01122.96
8.2.160.0090.00619.05
8.2.150.0040.00424.18
8.2.140.0110.00724.66
8.2.130.0080.00026.16
8.2.120.0050.00319.54
8.2.110.0030.00622.08
8.2.100.0080.00419.28
8.2.90.0040.00419.05
8.2.80.0070.00019.45
8.2.70.0040.00417.38
8.2.60.0060.00317.90
8.2.50.0040.00418.07
8.2.40.0030.00618.16
8.2.30.0000.00717.91
8.2.20.0050.00217.59
8.2.10.0050.00317.74
8.2.00.0000.00717.50
8.1.280.0170.00025.92
8.1.270.0030.00622.14
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0100.00023.92
8.1.230.0090.00319.10
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0000.00817.35
8.1.190.0000.00817.40
8.1.180.0070.00018.75
8.1.170.0060.00318.51
8.1.160.0040.00422.18
8.1.150.0040.00418.50
8.1.140.0070.00017.44
8.1.130.0050.00317.68
8.1.120.0000.00717.46
8.1.110.0000.00717.41
8.1.100.0030.00417.26
8.1.90.0050.00317.30
8.1.80.0030.00317.42
8.1.70.0000.00717.38
8.1.60.0000.00717.59
8.1.50.0050.00217.52
8.1.40.0060.00317.44
8.1.30.0000.00817.50
8.1.20.0050.00317.68
8.1.10.0070.00017.43
8.1.00.0000.00717.25
8.0.300.0030.00518.77
8.0.290.0070.00017.05
8.0.280.0040.00418.43
8.0.270.0000.00717.11
8.0.260.0070.00016.82
8.0.250.0030.00316.91
8.0.240.0000.00816.83
8.0.230.0030.00316.80
8.0.220.0000.00716.86
8.0.210.0030.00316.79
8.0.200.0000.00816.88
8.0.190.0040.00416.91
8.0.180.0030.00316.71
8.0.170.0000.00716.79
8.0.160.0000.00816.74
8.0.150.0000.00816.82
8.0.140.0070.00016.71
8.0.130.0000.00613.29
8.0.120.0030.00316.80
8.0.110.0000.00816.66
8.0.100.0040.00416.79
8.0.90.0040.00416.73
8.0.80.0090.00616.82
8.0.70.0050.00316.73
8.0.60.0070.00016.73
8.0.50.0040.00416.89
8.0.30.0100.00717.13
8.0.20.0080.01317.40
8.0.10.0000.00816.83
8.0.00.0070.01116.75
7.4.330.0000.00615.00
7.4.320.0060.00016.52
7.4.300.0000.00716.53
7.4.290.0030.00316.43
7.4.280.0040.00416.39
7.4.270.0000.00816.37
7.4.260.0050.00216.45
7.4.250.0030.00516.31
7.4.240.0030.00416.50
7.4.230.0000.00816.29
7.4.220.0100.00616.55
7.4.210.0070.00716.52
7.4.200.0040.00416.33
7.4.190.0040.00416.44
7.4.160.0120.00316.52
7.4.150.0160.00017.40
7.4.140.0110.00817.86
7.4.130.0150.00816.55
7.4.120.0100.00816.51
7.4.110.0060.01316.39
7.4.100.0120.01216.39
7.4.90.0080.00816.26
7.4.80.0090.00819.39
7.4.70.0140.00316.19
7.4.60.0160.00716.27
7.4.50.0090.00016.40
7.4.40.0110.00422.77
7.4.30.0090.00916.69
7.3.330.0000.00513.25
7.3.320.0050.00013.10
7.3.310.0060.00016.29
7.3.300.0000.00616.11
7.3.290.0120.00316.26
7.3.280.0090.00616.26
7.3.270.0090.01517.40
7.3.260.0100.01316.20
7.3.250.0090.00816.19
7.3.240.0100.00716.21
7.3.230.0090.01316.46
7.3.210.0100.00916.42
7.3.200.0120.00619.39
7.3.190.0090.00916.46
7.3.180.0060.01116.19
7.3.170.0070.01016.54
7.3.160.0090.00616.58
7.2.330.0090.01216.17
7.2.320.0100.01016.21
7.2.310.0100.00716.36
7.2.300.0070.01416.29
7.2.290.0060.00916.23
5.4.270.0100.05319.01
5.4.260.0100.05018.91
5.4.250.0100.05018.91
5.4.240.0100.05718.96
5.4.230.0030.06018.79
5.4.220.0070.06018.90
5.4.210.0100.05019.09
5.4.200.0170.06718.83
5.4.190.0070.05018.83
5.4.180.0030.05318.89
5.4.170.0200.04319.00
5.4.160.0070.05318.93
5.4.150.0170.04718.93
5.4.140.0030.07316.44
5.4.130.0030.05316.36
5.4.120.0170.06016.53
5.4.110.0200.06016.63
5.4.100.0100.04316.42
5.4.90.0070.04716.55
5.4.80.0070.04716.56
5.4.70.0170.03716.45
5.4.60.0070.04716.49
5.4.50.0030.05016.45
5.4.40.0030.05316.52
5.4.30.0200.04016.52
5.4.20.0130.04716.54
5.4.10.0070.05716.41
5.4.00.0070.05315.74
5.3.280.0000.05714.45
5.3.270.0070.05314.63
5.3.260.0170.05014.61
5.3.250.0070.05014.57
5.3.240.0000.06714.69
5.3.230.0130.06314.58
5.3.220.0070.05014.65
5.3.210.0100.06014.64
5.3.200.0100.04714.65
5.3.190.0100.04714.79
5.3.180.0030.05014.63
5.3.170.0070.05014.64
5.3.160.0200.04014.65
5.3.150.0100.05014.47
5.3.140.0030.05314.64
5.3.130.0170.04314.55
5.3.120.0100.05014.73
5.3.110.0070.07014.73
5.3.100.0100.05714.01
5.3.90.0070.05013.99
5.3.80.0070.06714.11
5.3.70.0070.05014.10
5.3.60.0100.06013.83
5.3.50.0070.05014.03
5.3.40.0130.04314.04
5.3.30.0070.07013.99
5.3.20.0170.04013.70
5.3.10.0070.05313.64
5.3.00.0000.05313.74
5.2.170.0070.04311.22
5.2.160.0000.04311.22
5.2.150.0070.04711.14
5.2.140.0170.04711.23
5.2.130.0100.03711.19
5.2.120.0070.04011.20
5.2.110.0130.03711.26
5.2.100.0070.04010.93
5.2.90.0100.05311.17
5.2.80.0030.04311.16
5.2.70.0030.04311.04
5.2.60.0100.05311.14
5.2.50.0000.05310.98
5.2.40.0030.04011.22
5.2.30.0030.04011.06
5.2.20.0100.03711.05
5.2.10.0030.04710.94
5.2.00.0070.05710.68
5.1.60.0100.0439.91
5.1.50.0030.0379.95
5.1.40.0030.0379.93
5.1.30.0200.03710.43
5.1.20.0030.05010.32
5.1.10.0130.02710.14
5.1.00.0070.05010.16
5.0.50.0000.0308.62
5.0.40.0100.0238.52
5.0.30.0170.0308.42
5.0.20.0100.0208.11
5.0.10.0100.0308.09
5.0.00.0030.0438.13
4.4.90.0070.0177.42
4.4.80.0000.0237.42
4.4.70.0070.0207.42
4.4.60.0070.0207.42
4.4.50.0000.0277.42
4.4.40.0070.0307.42
4.4.30.0070.0207.42
4.4.20.0000.0237.42
4.4.10.0000.0237.42
4.4.00.0000.0377.42
4.3.110.0030.0237.42
4.3.100.0030.0207.42
4.3.90.0000.0207.42
4.3.80.0030.0307.42
4.3.70.0000.0207.42
4.3.60.0030.0207.42
4.3.50.0030.0207.42
4.3.40.0000.0377.42
4.3.30.0070.0277.42
4.3.20.0000.0307.42
4.3.10.0000.0207.42
4.3.00.0170.0176.83

preferences:
72.95 ms | 400 KiB | 5 Q