3v4l.org

run code in 300+ PHP versions simultaneously
<? class Dog { } class Poodle extends Dog { } $poppy = new Poodle( ); print (int)($poppy instanceof Dog); print "\n"; print (int)is_subclass_of($poppy, "Dog"); ?>

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.0100.00718.43
8.3.50.0100.00718.19
8.3.40.0110.00418.77
8.3.30.0040.01118.59
8.3.20.0080.00019.09
8.3.10.0040.00421.73
8.3.00.0050.00319.56
8.2.180.0100.00716.32
8.2.170.0140.00022.96
8.2.160.0030.01020.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00618.03
8.2.120.0030.00526.35
8.2.110.0060.00320.94
8.2.100.0040.00817.79
8.2.90.0000.00817.72
8.2.80.0020.00517.97
8.2.70.0040.00417.38
8.2.60.0100.00017.79
8.2.50.0030.00518.09
8.2.40.0040.00422.18
8.2.30.0040.00419.25
8.2.20.0030.00517.41
8.2.10.0050.00217.79
8.2.00.0000.00717.79
8.1.280.0150.00425.92
8.1.270.0030.00523.96
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0000.00822.00
8.1.230.0080.00420.76
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0040.00416.98
8.1.180.0070.00018.10
8.1.170.0000.00818.44
8.1.160.0040.00420.52
8.1.150.0000.00718.89
8.1.140.0070.00019.31
8.1.130.0030.00317.55
8.1.120.0040.00317.33
8.1.110.0000.01217.29
8.1.100.0050.00217.23
8.1.90.0070.00017.32
8.1.80.0000.00717.21
8.1.70.0030.00317.23
8.1.60.0000.00817.43
8.1.50.0040.00417.27
8.1.40.0000.00717.27
8.1.30.0030.00517.41
8.1.20.0000.00717.51
8.1.10.0040.00417.44
8.1.00.0060.00317.36
8.0.300.0040.00420.11
8.0.290.0000.00816.63
8.0.280.0000.00818.41
8.0.270.0070.00017.05
8.0.260.0030.00317.18
8.0.250.0060.00016.68
8.0.240.0030.00316.81
8.0.230.0000.00816.84
8.0.220.0040.00416.70
8.0.210.0070.00016.62
8.0.200.0060.00016.77
8.0.190.0000.00716.80
8.0.180.0030.00516.72
8.0.170.0050.00316.72
8.0.160.0000.00816.77
8.0.150.0040.00416.59
8.0.140.0020.00516.75
8.0.130.0030.00313.22
8.0.120.0050.00516.61
8.0.110.0060.00316.71
8.0.100.0040.00416.86
8.0.90.0030.00616.80
8.0.80.0120.00916.66
8.0.70.0070.00016.70
8.0.60.0070.00016.63
8.0.50.0040.00416.66
8.0.30.0090.00816.97
8.0.20.0100.00917.40
8.0.10.0000.00716.83
8.0.00.0070.01016.61
7.4.330.0020.00215.08
7.4.320.0000.00716.38
7.4.300.0030.00616.47
7.4.290.0000.00716.34
7.4.280.0050.00316.48
7.4.270.0000.00816.34
7.4.260.0000.00716.42
7.4.250.0030.00316.30
7.4.240.0000.00716.43
7.4.230.0030.00316.11
7.4.220.0050.01416.31
7.4.210.0150.00416.49
7.4.200.0000.00716.35
7.4.160.0090.01316.25
7.4.150.0130.00417.40
7.4.140.0090.01117.86
7.4.130.0100.00616.42
7.4.120.0090.00816.63
7.4.110.0030.01416.42
7.4.100.0070.01016.59
7.4.90.0070.01016.34
7.4.80.0130.01019.39
7.4.70.0100.00616.34
7.4.60.0000.01716.29
7.4.50.0030.01016.45
7.4.40.0060.00916.54
7.4.30.0080.00816.45
7.4.00.0000.01114.66
7.3.330.0000.00713.30
7.3.320.0000.00713.32
7.3.310.0080.00016.09
7.3.300.0000.00715.93
7.3.290.0070.00716.11
7.3.280.0080.01016.15
7.3.270.0150.00317.40
7.3.260.0140.00516.47
7.3.250.0100.00916.43
7.3.240.0150.00516.23
7.3.230.0100.01016.39
7.3.210.0040.01416.15
7.3.200.0130.00616.21
7.3.190.0050.01016.39
7.3.180.0130.00616.17
7.3.170.0090.00916.36
7.3.160.0080.00916.51
7.2.330.0030.01316.62
7.2.320.0090.01216.53
7.2.310.0040.01516.24
7.2.300.0060.01216.54
7.2.290.0100.00716.42
7.2.60.0000.01116.67
7.2.00.0070.00719.21
7.1.200.0000.00815.77
7.1.100.0030.01017.73
7.1.70.0030.00917.14
7.1.60.0070.01819.47
7.1.00.0100.07022.28
7.0.200.0590.00714.84
7.0.60.0870.00019.95
7.0.50.0830.00020.22
7.0.40.1100.00020.21
7.0.30.0800.00020.45
7.0.20.0830.00020.44
7.0.10.0870.00020.30
7.0.00.0730.00020.30
5.6.280.0070.06721.12
5.6.210.0900.00020.59
5.6.200.1070.00021.15
5.6.190.0870.00021.13
5.6.180.1070.00021.20
5.6.170.0800.00021.16
5.6.160.0700.00021.12
5.6.150.0800.00021.24
5.6.140.0930.00021.02
5.6.130.0870.00021.03
5.6.120.1030.00020.98
5.6.110.1070.00021.15
5.6.100.0730.00021.04
5.6.90.0930.00021.00
5.6.80.0800.00020.42
5.6.70.1100.00020.44
5.6.60.0830.00020.44
5.6.50.0800.00020.42
5.6.40.0900.00020.37
5.6.30.0870.00020.48
5.6.20.1000.00020.43
5.6.10.1030.00020.40
5.6.00.0930.00020.41
5.5.350.0830.00020.49
5.5.340.0770.00021.00
5.5.330.0970.00020.86
5.5.320.0770.00021.00
5.5.310.0800.00020.88
5.5.300.1100.00020.83
5.5.290.0900.00020.88
5.5.280.0800.00020.80
5.5.270.0970.00020.86
5.5.260.0800.00021.04
5.5.250.0900.00020.77
5.5.240.1070.00020.26
5.5.230.1030.00020.21
5.5.220.0930.00020.20
5.5.210.0870.00020.09
5.5.200.0830.00020.27
5.5.190.0900.00020.18
5.5.180.0800.00020.12
5.5.160.1030.00020.31
5.5.150.0930.00020.36
5.5.140.0870.00020.18
5.5.130.0970.00020.22
5.5.120.0930.00020.22
5.5.110.0870.00020.21
5.5.100.0770.00020.01
5.5.90.0800.00020.20
5.5.80.0830.00020.16
5.5.70.0870.00020.08
5.5.60.1000.00020.15
5.5.50.0870.00020.06
5.5.40.1100.00020.07
5.5.30.0830.00020.12
5.5.20.0970.00020.05
5.5.10.0970.00020.17
5.5.00.1000.00020.14

preferences:
74.07 ms | 401 KiB | 5 Q