3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Define the Interface interface MyInterface { public function MyFunction(); } // Define the class implementation of the interface class MyClass implements MyInterface { public function MyFunction() { return "MyClass Implements MyInterface!"; } } // Instantiate the object $my_object = new MyClass; if (is_subclass_of('MyClass', 'MyInterface')) { echo "Yes, MyClass is a subclass of MyInterface\n"; } else { echo "No, MyClass is not a subclass of MyInterface\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.0140.00718.30
8.3.50.0080.00817.95
8.3.40.0120.00618.85
8.3.30.0060.00819.10
8.3.20.0000.00820.38
8.3.10.0040.00423.35
8.3.00.0060.00319.38
8.2.180.0040.01118.17
8.2.170.0100.00722.96
8.2.160.0100.00319.22
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00422.27
8.2.110.0060.00320.35
8.2.100.0090.00318.03
8.2.90.0090.00019.31
8.2.80.0030.00617.97
8.2.70.0000.00817.50
8.2.60.0030.00617.93
8.2.50.0080.00418.07
8.2.40.0090.00018.28
8.2.30.0050.00317.97
8.2.20.0000.00717.55
8.2.10.0040.00418.11
8.2.00.0050.00317.59
8.1.270.0030.00623.83
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.93
8.1.230.0070.00418.88
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0070.00317.35
8.1.190.0030.00517.23
8.1.180.0040.00418.10
8.1.170.0000.00818.59
8.1.160.0000.00722.07
8.1.150.0000.00718.83
8.1.140.0040.00417.44
8.1.130.0030.00517.91
8.1.120.0030.00417.50
8.1.110.0000.00817.45
8.1.100.0050.00217.52
8.1.90.0040.00417.39
8.1.80.0040.00417.46
8.1.70.0040.00417.31
8.1.60.0000.00817.47
8.1.50.0030.00517.39
8.1.40.0060.00317.38
8.1.30.0030.00617.60
8.1.20.0040.00417.61
8.1.10.0040.00417.54
8.1.00.0000.00717.39
8.0.300.0000.00918.77
8.0.290.0040.00416.72
8.0.280.0050.00218.50
8.0.270.0000.00717.25
8.0.260.0000.00717.28
8.0.250.0030.00316.96
8.0.240.0030.00316.99
8.0.230.0000.00716.93
8.0.220.0000.00816.89
8.0.210.0000.00616.86
8.0.200.0030.00316.86
8.0.190.0000.00716.85
8.0.180.0040.00416.77
8.0.170.0030.00516.89
8.0.160.0000.00716.89
8.0.150.0050.00316.93
8.0.140.0040.00416.74
8.0.130.0000.00513.19
8.0.120.0060.00316.87
8.0.110.0000.00816.89
8.0.100.0040.00416.95
8.0.90.0050.00316.72
8.0.80.0110.00416.88
8.0.70.0080.00016.79
8.0.60.0030.00516.66
8.0.50.0040.00416.79
8.0.30.0140.00617.07
8.0.20.0080.01417.40
8.0.10.0080.00017.05
8.0.00.0160.00216.82
7.4.330.0050.00015.00
7.4.320.0030.00316.41
7.4.300.0000.00616.50
7.4.290.0070.00016.58
7.4.280.0080.00016.63
7.4.270.0030.00316.61
7.4.260.0030.00316.59
7.4.250.0000.00716.48
7.4.240.0020.00516.53
7.4.230.0000.00716.45
7.4.220.0120.00916.68
7.4.210.0030.01116.46
7.4.200.0030.00316.55
7.4.160.0100.00716.50
7.4.150.0120.00617.40
7.4.140.0100.01017.86
7.4.130.0120.00616.55
7.4.120.0070.00916.42
7.4.110.0090.01216.42
7.4.100.0080.00816.40
7.4.90.0110.00616.40
7.4.80.0090.00819.39
7.4.70.0090.01216.48
7.4.60.0170.00316.45
7.4.50.0030.00616.28
7.4.40.0070.01016.45
7.4.30.0100.00616.50
7.4.00.0080.00815.01
7.3.330.0000.00613.01
7.3.320.0030.00312.98
7.3.310.0050.00216.17
7.3.300.0030.00316.07
7.3.290.0070.01116.10
7.3.280.0090.00816.19
7.3.270.0040.01417.40
7.3.260.0120.00616.28
7.3.250.0080.00816.36
7.3.240.0100.01316.39
7.3.230.0110.00516.40
7.3.210.0070.01016.32
7.3.200.0070.01019.39
7.3.190.0070.01116.47
7.3.180.0080.00816.13
7.3.170.0080.00816.32
7.3.160.0110.00416.54
7.3.00.0070.00716.49
7.2.330.0080.00916.68
7.2.320.0060.01216.34
7.2.310.0090.01616.35
7.2.300.0090.01316.63
7.2.290.0100.00716.43
7.2.130.0030.01316.77
7.2.120.0040.00416.98
7.2.110.0100.00716.95
7.2.100.0040.00816.79
7.2.90.0060.00916.69
7.2.80.0070.00716.68
7.2.70.0070.00716.82
7.2.60.0090.00416.63
7.2.50.0130.00716.94
7.2.40.0060.00316.85
7.2.30.0070.00716.81
7.2.20.0030.01016.82
7.2.10.0100.00316.71
7.2.00.0090.00517.99
7.1.250.0000.01015.74
7.1.240.0030.01215.45
7.1.230.0000.01315.74
7.1.220.0030.00815.75
7.1.210.0030.00715.75
7.1.200.0080.00215.61
7.1.190.0120.00015.56
7.1.180.0070.00715.75
7.1.170.0080.00015.80
7.1.160.0060.00615.41
7.1.150.0030.00715.63
7.1.140.0070.00715.62
7.1.130.0090.00315.58
7.1.120.0060.00615.71
7.1.110.0070.00715.75
7.1.100.0050.00616.78
7.1.90.0030.00615.87
7.1.80.0030.01215.77
7.1.70.0040.00516.38
7.1.60.0060.00717.54
7.1.50.0080.00916.12
7.1.40.0060.00615.82
7.1.30.0040.00715.35
7.1.20.0080.00415.70
7.1.10.0000.01515.46
7.1.00.0070.04018.99
7.0.330.0000.00815.33
7.0.320.0060.00615.26
7.0.310.0070.00715.25
7.0.300.0000.01215.32
7.0.290.0030.01015.07
7.0.280.0030.01015.11
7.0.270.0060.00615.16
7.0.260.0000.00915.09
7.0.250.0070.00715.05
7.0.240.0000.01215.47
7.0.230.0090.00315.45
7.0.220.0040.00815.43
7.0.210.0070.00715.45
7.0.200.0030.00716.08
7.0.190.0090.00315.18
7.0.180.0040.01115.40
7.0.170.0080.00615.36
7.0.160.0060.00315.34
7.0.150.0050.00815.32
7.0.140.0020.04218.53
7.0.130.0030.00715.39
7.0.120.0120.00315.20
7.0.110.0010.04817.61
7.0.100.0080.04517.55
7.0.90.0100.03817.55
7.0.80.0050.02517.65
7.0.70.0050.04517.65
7.0.60.0050.02317.63
7.0.50.0040.02417.95
7.0.40.0030.02416.71
7.0.30.0070.02316.86
7.0.20.0040.04416.79
7.0.10.0120.02416.67
7.0.00.0030.02816.66
5.6.380.0070.00714.04
5.6.370.0080.00414.22
5.6.360.0070.01014.29
5.6.350.0070.00714.34
5.6.340.0070.00714.51
5.6.330.0000.01014.52
5.6.320.0060.00614.11
5.6.310.0080.00414.52
5.6.300.0060.00814.13
5.6.290.0040.01214.41
5.6.280.0050.04017.65
5.6.270.0030.01014.64
5.6.260.0070.02417.46
5.6.250.0090.04317.43
5.6.240.0030.03217.61
5.6.230.0100.02017.35
5.6.220.0060.02717.34
5.6.210.0050.03517.55
5.6.200.0040.02617.73
5.6.190.0030.03917.56
5.6.180.0020.02417.63
5.6.170.0040.02417.67
5.6.160.0020.02517.62
5.6.150.0020.03217.67
5.6.140.0080.02517.79
5.6.130.0060.02617.69
5.6.120.0070.02017.77
5.6.110.0030.03217.78
5.6.100.0070.02517.75
5.6.90.0020.02717.51
5.6.80.0030.02317.21
5.6.70.0030.02517.45
5.6.60.0100.01817.51
5.6.50.0050.02417.28
5.6.40.0050.02217.34
5.6.30.0030.02617.33
5.6.20.0010.03317.43
5.6.10.0050.02017.55
5.6.00.0050.03317.40
5.5.380.0050.02815.76
5.5.370.0040.02215.78
5.5.360.0030.02815.79
5.5.350.0070.02115.73
5.5.340.0030.03016.01
5.5.330.0030.03316.14
5.5.320.0030.02216.03
5.5.310.0070.02216.02
5.5.300.0030.02815.89
5.5.290.0070.01816.13
5.5.280.0080.02615.97
5.5.270.0020.02816.05
5.5.260.0070.02016.07
5.5.250.0000.02615.89
5.5.240.0070.01815.77
5.5.230.0030.02215.74
5.5.220.0090.02215.61
5.5.210.0050.02215.68
5.5.200.0030.02215.65
5.5.190.0030.02315.79
5.5.180.0020.02515.72
5.5.170.0070.00311.06
5.5.160.0070.03815.67
5.5.150.0030.02615.75
5.5.140.0030.03915.80
5.5.130.0080.03715.57
5.5.120.0050.03215.68
5.5.110.0080.03815.69
5.5.100.0060.04115.54
5.5.90.0130.02115.51
5.5.80.0050.03815.64
5.5.70.0040.03615.53
5.5.60.0080.03815.74
5.5.50.0050.04215.62
5.5.40.0070.03215.66
5.5.30.0060.03315.59
5.5.20.0050.03715.72
5.5.10.0070.04115.62
5.5.00.0090.03515.56
5.4.450.0030.02515.25
5.4.440.0050.02015.31
5.4.430.0030.02715.18
5.4.420.0060.02015.36
5.4.410.0010.02515.35
5.4.400.0020.02215.03
5.4.390.0050.02015.06
5.4.380.0040.02015.20
5.4.370.0050.01815.13
5.4.360.0030.02215.08
5.4.350.0070.01715.19
5.4.340.0020.03015.15
5.4.330.0060.00611.16
5.4.320.0050.02415.12
5.4.310.0060.03615.20
5.4.300.0000.04315.18
5.4.290.0050.03515.00
5.4.280.0050.04015.09
5.4.270.0030.04015.10
5.4.260.0050.03915.03
5.4.250.0110.03215.04
5.4.240.0020.03215.15
5.4.230.0050.03515.03
5.4.220.0070.03715.07
5.4.210.0020.04415.20
5.4.200.0020.02415.15
5.4.190.0050.04315.12
5.4.180.0060.02215.07
5.4.170.0030.03915.10
5.4.160.0020.04215.01
5.4.150.0040.04515.17
5.4.140.0070.03213.77
5.4.130.0070.04013.75
5.4.120.0080.03813.78
5.4.110.0050.03913.74
5.4.100.0060.02113.69
5.4.90.0030.04313.66
5.4.80.0030.03413.82
5.4.70.0030.02313.65
5.4.60.0080.03613.77
5.4.50.0090.02513.88
5.4.40.0050.03813.83
5.4.30.0050.04013.85
5.4.20.0030.03813.80
5.4.10.0060.02813.79
5.4.00.0030.03813.45
5.3.290.0040.04112.86
5.3.280.0070.03712.87
5.3.270.0030.04312.84
5.3.260.0050.04012.88
5.3.250.0010.04112.88
5.3.240.0090.03312.83
5.3.230.0080.03712.89
5.3.220.0070.03912.83
5.3.210.0000.03312.81
5.3.200.0080.03712.75
5.3.190.0020.04112.88
5.3.180.0030.03912.80
5.3.170.0020.04512.86
5.3.160.0050.03812.80
5.3.150.0030.02512.85
5.3.140.0020.04112.80
5.3.130.0060.03712.88
5.3.120.0090.03712.79
5.3.110.0110.03512.92
5.3.100.0090.03512.61
5.3.90.0040.03712.54
5.3.80.0040.04012.53
5.3.70.0030.04112.54
5.3.60.0030.02312.52
5.3.50.0000.04012.52
5.3.40.0050.04012.52
5.3.30.0080.03812.41
5.3.20.0050.03312.45
5.3.10.0130.03012.29
5.3.00.0000.04212.35
5.2.170.0030.02211.40
5.2.160.0040.03411.40
5.2.150.0030.02711.40
5.2.140.0020.03611.40
5.2.130.0050.02811.40
5.2.120.0050.03111.40
5.2.110.0020.03311.40
5.2.100.0050.03111.40
5.2.90.0070.01711.40
5.2.80.0020.03511.40
5.2.70.0060.02711.40
5.2.60.0060.03011.40
5.2.50.0030.03211.40
5.2.40.0030.03211.40
5.2.30.0080.02811.40
5.2.20.0020.03311.40
5.2.10.0030.03211.40
5.2.00.0070.03011.40
5.1.60.0050.02611.40
5.1.50.0000.01911.40
5.1.40.0010.03111.40
5.1.30.0080.01711.40
5.1.20.0020.02011.40
5.1.10.0060.02711.40
5.1.00.0100.01111.40
5.0.50.0050.02111.40
5.0.40.0000.02511.40
5.0.30.0030.03511.40
5.0.20.0030.02311.40
5.0.10.0050.02211.40
5.0.00.0060.02111.40
4.4.90.0010.01011.40
4.4.80.0020.01811.40
4.4.70.0050.00611.40
4.4.60.0020.02011.40
4.4.50.0030.01811.40
4.4.40.0010.02911.40
4.4.30.0030.02011.40
4.4.20.0010.01911.40
4.4.10.0000.02111.40
4.4.00.0050.01511.40
4.3.110.0020.01911.40
4.3.100.0000.01911.40
4.3.90.0020.01511.40
4.3.80.0050.02311.40
4.3.70.0020.01811.40
4.3.60.0030.01311.40
4.3.50.0010.01811.40
4.3.40.0020.02511.40
4.3.30.0000.02111.40
4.3.20.0000.02011.40
4.3.10.0020.02011.40
4.3.00.0050.01711.40

preferences:
60.88 ms | 400 KiB | 5 Q