3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace foo; class MyException extends \Exception {} $class = '\\foo\\MyException'; echo "$class\n", '1) ', var_export(is_subclass_of($class, "\\Exception"), true), "\n", '2) ', var_export(is_subclass_of("\\foo\\MyException", "\\Exception"), true), "\n";

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.0090.00916.50
8.3.50.0060.00917.18
8.3.40.0070.00718.81
8.3.30.0120.00318.41
8.3.20.0040.00418.50
8.3.10.0050.00318.60
8.3.00.0080.00417.50
8.2.180.0120.00916.50
8.2.170.0040.01122.96
8.2.160.0030.01221.07
8.2.150.0150.00424.18
8.2.140.0030.00624.66
8.2.130.0060.00326.16
8.2.120.0040.00719.02
8.2.110.0030.00620.96
8.2.100.0040.00817.78
8.2.90.0040.00419.10
8.2.80.0040.00419.34
8.2.70.0040.00417.63
8.2.60.0050.00317.80
8.2.50.0080.00018.07
8.2.40.0040.00418.03
8.2.30.0000.00717.95
8.2.20.0000.00817.74
8.2.10.0040.00417.71
8.2.00.0080.00017.78
8.1.280.0110.00425.92
8.1.270.0040.00424.66
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0060.00322.16
8.1.230.0080.00422.68
8.1.220.0030.00618.77
8.1.210.0060.00319.09
8.1.200.0040.00417.23
8.1.190.0000.00817.54
8.1.180.0030.00618.10
8.1.170.0030.00518.77
8.1.160.0070.00018.82
8.1.150.0000.00818.48
8.1.140.0000.00717.36
8.1.130.0030.00317.82
8.1.120.0040.00417.45
8.1.110.0040.00417.28
8.1.100.0070.00017.42
8.1.90.0000.00817.37
8.1.80.0040.00417.32
8.1.70.0040.00417.34
8.1.60.0060.00317.47
8.1.50.0040.00417.38
8.1.40.0040.00417.37
8.1.30.0040.00417.47
8.1.20.0000.00817.49
8.1.10.0040.00417.41
8.1.00.0000.00717.33
8.0.300.0060.00319.86
8.0.290.0040.00416.75
8.0.280.0050.00218.44
8.0.270.0030.00317.12
8.0.260.0000.00616.73
8.0.250.0040.00416.97
8.0.240.0050.00216.89
8.0.230.0050.00216.93
8.0.220.0030.00316.76
8.0.210.0000.00716.73
8.0.200.0030.00316.78
8.0.190.0080.00016.95
8.0.180.0070.00416.88
8.0.170.0040.00416.87
8.0.160.0030.00316.87
8.0.150.0050.00216.78
8.0.140.0050.00316.73
8.0.130.0030.00313.32
8.0.120.0030.00516.76
8.0.110.0000.00716.95
8.0.100.0000.00716.75
8.0.90.0000.00716.77
8.0.80.0060.01316.88
8.0.70.0080.00016.75
8.0.60.0040.00416.74
8.0.50.0000.00716.85
8.0.30.0080.01116.87
8.0.20.0090.01317.14
8.0.10.0000.00716.80
8.0.00.0080.01116.65
7.4.330.0020.00213.00
7.4.320.0030.00316.53
7.4.300.0030.00316.52
7.4.290.0030.00316.53
7.4.280.0040.00416.53
7.4.270.0030.00316.45
7.4.260.0000.00513.12
7.4.250.0000.00816.44
7.4.240.0020.00516.55
7.4.230.0060.00016.32
7.4.220.0160.01016.45
7.4.210.0050.01016.54
7.4.200.0030.00416.27
7.4.190.0000.00716.55
7.4.160.0090.00616.49
7.4.150.0090.01016.53
7.4.140.0080.00916.43
7.4.130.0150.00716.40
7.4.120.0050.01216.45
7.4.110.0070.01716.48
7.4.100.0060.01216.59
7.4.90.0120.00916.49
7.4.80.0140.00319.39
7.4.70.0100.00716.52
7.4.60.0030.01716.25
7.4.50.0080.00516.42
7.4.40.0080.00816.41
7.4.30.0060.01216.46
7.4.00.0040.01114.75
7.3.330.0060.00013.21
7.3.320.0060.00013.17
7.3.310.0070.00016.30
7.3.300.0030.00316.25
7.3.290.0100.00616.22
7.3.280.0080.00816.25
7.3.270.0160.00416.45
7.3.260.0100.00716.39
7.3.250.0130.00516.42
7.3.240.0080.00816.12
7.3.230.0100.00716.21
7.3.210.0140.00316.59
7.3.200.0150.00816.10
7.3.190.0050.01116.59
7.3.180.0080.01216.26
7.3.170.0090.00616.30
7.3.160.0060.00916.45
7.3.120.0030.01314.93
7.2.330.0110.00616.63
7.2.320.0060.01616.57
7.2.310.0100.01016.60
7.2.300.0100.00716.66
7.2.290.0070.01116.50
7.2.80.0070.00716.49
7.2.60.0100.00316.92
7.2.00.0030.01019.51
7.1.200.0080.00815.88
7.1.100.0030.00718.20
7.1.70.0040.00417.03
7.1.60.0030.02019.40
7.1.50.0110.01116.89
7.1.00.0070.05322.39
7.0.200.0390.00314.42
7.0.140.0000.07321.97
7.0.120.0030.07322.04
7.0.60.0030.06020.05
7.0.50.0070.07017.72
7.0.40.0130.06717.75
7.0.30.0100.05317.84
7.0.20.0030.05317.74
7.0.10.0030.08717.81
7.0.00.0070.08317.75
5.6.280.0000.07721.13
5.6.210.0000.08320.46
5.6.200.0070.08718.18
5.6.190.0100.07718.18
5.6.180.0030.04318.15
5.6.170.0070.08018.25
5.6.160.0130.08018.23
5.6.150.0070.07318.25
5.6.140.0030.08018.26
5.6.130.0170.07718.13
5.6.120.0070.08318.15
5.6.110.0070.05318.26
5.6.100.0130.08018.14
5.6.90.0100.07718.13
5.6.80.0100.05717.57
5.6.70.0030.08317.52
5.6.60.0030.08017.52
5.6.50.0030.04017.56
5.6.40.0130.07317.51
5.6.30.0070.07717.64
5.6.20.0000.08017.50
5.6.10.0070.06717.50
5.6.00.0000.04317.61
5.5.350.0200.05020.42
5.5.340.0100.07317.98
5.5.330.0070.07717.99
5.5.320.0130.07018.02
5.5.310.0030.04717.98
5.5.300.0130.07318.04
5.5.290.0130.07717.98
5.5.280.0100.06017.98
5.5.270.0070.07717.94
5.5.260.0030.08318.07
5.5.250.0200.06317.77
5.5.240.0070.08017.32
5.5.230.0100.04317.45
5.5.220.0130.07017.35
5.5.210.0070.06317.35
5.5.200.0000.05017.48
5.5.190.0030.06717.33
5.5.180.0070.07017.34
5.5.160.0070.03717.31
5.5.150.0070.07317.27
5.5.140.0070.08017.30
5.5.130.0070.05017.32
5.5.120.0170.07317.33
5.5.110.0070.08017.30
5.5.100.0030.04717.23
5.5.90.0030.08017.28
5.5.80.0070.04717.20
5.5.70.0100.07317.19
5.5.60.0130.07317.18
5.5.50.0000.08017.27
5.5.40.0070.07017.27
5.5.30.0070.08017.32
5.5.20.0100.07017.25
5.5.10.0170.06317.19
5.5.00.0070.07717.18
5.4.450.0130.05719.38
5.4.440.0100.04319.43
5.4.430.0130.06719.41
5.4.420.0070.06719.42
5.4.410.0070.07719.23
5.4.400.0100.05019.05
5.4.390.0030.06719.02
5.4.380.0100.04019.03
5.4.370.0170.03319.12
5.4.360.0130.03019.05
5.4.350.0100.04319.03
5.4.340.0070.07319.22
5.4.320.0170.06719.27
5.4.310.0130.06719.02
5.4.300.0100.07318.98
5.4.290.0030.06719.09
5.4.280.0130.07319.14
5.4.270.0130.07318.89
5.4.260.0130.06718.98
5.4.250.0100.08019.04
5.4.240.0000.08018.88
5.4.230.0070.08019.00
5.4.220.0070.07718.99
5.4.210.0100.06719.02
5.4.200.0130.05719.11
5.4.190.0070.06319.01
5.4.180.0070.07319.30
5.4.170.0000.05018.97
5.4.160.0000.08019.02
5.4.150.0070.07319.01
5.4.140.0070.07716.24
5.4.130.0130.04316.35
5.4.120.0030.03716.42
5.4.110.0030.07716.56
5.4.100.0000.07716.38
5.4.90.0070.06316.43
5.4.80.0030.03716.39
5.4.70.0070.05716.29
5.4.60.0070.07016.29
5.4.50.0130.06716.29
5.4.40.0130.06716.27
5.4.30.0100.04316.53
5.4.20.0070.06716.37
5.4.10.0070.07716.31
5.4.00.0030.04015.98
5.3.290.0030.08314.68
5.3.280.0030.07314.55
5.3.270.0070.04314.60
5.3.260.0030.08014.62
5.3.250.0030.07714.56
5.3.240.0070.06714.46
5.3.230.0030.07014.65
5.3.220.0030.04314.57
5.3.210.0100.07314.54
5.3.200.0070.06714.59
5.3.190.0070.06314.52
5.3.180.0070.03314.59
5.3.170.0100.07314.61
5.3.160.0130.06014.61
5.3.150.0070.04014.63
5.3.140.0100.03314.60
5.3.130.0070.04714.57
5.3.120.0130.05714.58
5.3.110.0000.08714.62
5.3.100.0030.04014.09
5.3.90.0000.04713.98
5.3.80.0170.03713.91
5.3.70.0030.05014.07
5.3.60.0100.07314.09
5.3.50.0130.07313.98
5.3.40.0030.05013.97
5.3.30.0030.04713.96
5.3.20.0130.05713.59
5.3.10.0100.06713.86
5.3.00.0170.05313.70
5.2.170.0070.05711.13
5.2.160.0030.04311.14
5.2.150.0070.04311.11
5.2.140.0000.07011.14
5.2.130.0030.05011.09
5.2.120.0100.03011.13
5.2.110.0030.03011.07
5.2.100.0030.04311.08
5.2.90.0070.06011.03
5.2.80.0100.02311.09
5.2.70.0000.03310.87
5.2.60.0070.04311.08
5.2.50.0030.06011.16
5.2.40.0030.06310.93
5.2.30.0070.04710.91
5.2.20.0070.06010.91
5.2.10.0030.03710.86
5.2.00.0030.06010.72
5.1.60.0030.0539.98
5.1.50.0070.0279.93
5.1.40.0100.05010.02
5.1.30.0030.05010.38
5.1.20.0030.06010.36
5.1.10.0070.05010.04
5.1.00.0100.05010.05
5.0.50.0100.0408.53
5.0.40.0000.0378.54
5.0.30.0100.0478.37
5.0.20.0130.0338.37
5.0.10.0130.0338.37
5.0.00.0030.0678.37
4.4.90.0030.0308.37
4.4.80.0030.0308.37
4.4.70.0030.0278.37
4.4.60.0030.0308.37
4.4.50.0070.0178.37
4.4.40.0070.0438.37
4.4.30.0000.0338.37
4.4.20.0070.0338.37
4.4.10.0000.0408.37
4.4.00.0030.0538.37
4.3.110.0000.0378.37
4.3.100.0000.0338.37
4.3.90.0070.0278.37
4.3.80.0070.0438.37
4.3.70.0000.0338.37
4.3.60.0070.0308.37
4.3.50.0100.0278.37
4.3.40.0000.0478.37
4.3.30.0000.0338.37
4.3.20.0000.0278.37
4.3.10.0070.0338.37
4.3.00.0030.0238.37

preferences:
63.7 ms | 401 KiB | 5 Q