3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A {} interface B {} trait C {} class D extends A implements B { use C; public function check() { var_dump($this instanceof A); // Class var_dump($this instanceof B); // Interface var_dump($this instanceof C); // Trait var_dump($this instanceof D); // Self } } (new D)->check(); ?>

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.4.140.0120.01017.71
8.4.130.0130.00817.77
8.4.120.0070.01022.15
8.4.110.0070.00218.74
8.4.100.0110.01017.77
8.4.90.0050.00520.39
8.4.80.0100.00718.54
8.4.70.0050.00418.75
8.4.60.0050.00319.01
8.4.50.0140.00520.24
8.4.40.0040.01222.47
8.4.30.0130.00722.29
8.4.20.0140.00418.63
8.4.10.0090.00019.48
8.3.270.0100.00916.52
8.3.260.0100.00916.77
8.3.250.0080.01018.79
8.3.240.0030.00518.45
8.3.230.0080.00716.44
8.3.220.0130.00518.93
8.3.210.0120.00718.36
8.3.200.0060.00216.71
8.3.190.0100.00818.95
8.3.180.0090.01018.91
8.3.170.0110.00319.02
8.3.160.0070.01117.05
8.3.150.0100.00016.66
8.3.140.0080.00017.29
8.3.130.0060.00318.23
8.3.120.0090.00020.68
8.3.110.0030.00720.94
8.3.100.0090.00016.35
8.3.90.0040.01118.30
8.3.80.0000.00917.97
8.3.70.0070.01116.38
8.3.60.0060.00918.29
8.3.50.0060.00717.31
8.3.40.0150.00318.58
8.3.30.0120.00318.43
8.3.20.0000.00820.71
8.3.10.0040.00420.40
8.3.00.0040.00420.99
8.2.290.0050.00318.80
8.2.280.0120.00818.23
8.2.270.0060.01316.72
8.2.260.0140.00316.58
8.2.250.0080.00016.86
8.2.240.0030.00618.73
8.2.230.0090.00922.58
8.2.220.0070.00324.06
8.2.210.0070.00326.77
8.2.200.0060.00318.02
8.2.190.0160.00616.58
8.2.180.0120.00318.16
8.2.170.0110.00722.96
8.2.160.0040.01120.69
8.2.150.0050.00224.18
8.2.140.0000.01024.66
8.2.130.0050.00218.03
8.2.120.0040.00426.35
8.2.110.0000.00822.25
8.2.100.0040.00817.59
8.2.90.0080.00017.60
8.2.80.0050.00318.78
8.2.70.0030.00517.50
8.2.60.0000.00817.63
8.2.50.0080.00017.63
8.2.40.0020.00519.13
8.2.30.0040.00419.30
8.2.20.0040.00418.06
8.2.10.0040.00419.32
8.2.00.0000.00717.92
8.1.330.0100.00918.17
8.1.320.0080.01122.00
8.1.310.0110.00016.25
8.1.300.0180.00020.10
8.1.290.0060.00318.88
8.1.280.0070.01425.92
8.1.270.0040.00420.36
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0090.00019.14
8.1.230.0090.00321.03
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0000.00817.22
8.1.190.0000.00817.11
8.1.180.0050.00818.10
8.1.170.0040.00418.46
8.1.160.0000.00718.89
8.1.150.0040.00418.75
8.1.140.0030.00320.15
8.1.130.0000.00620.27
8.1.120.0030.00317.40
8.1.110.0040.00417.39
8.1.100.0020.00517.30
8.1.90.0050.00317.40
8.1.80.0040.00417.34
8.1.70.0000.00817.33
8.1.60.0020.00517.42
8.1.50.0000.00817.52
8.1.40.0000.00917.37
8.1.30.0030.00717.53
8.1.20.0050.00317.50
8.1.10.0080.00417.53
8.1.00.0040.00417.43
8.0.300.0080.00018.77
8.0.290.0000.00716.63
8.0.280.0000.00718.46
8.0.270.0070.00017.26
8.0.260.0040.00418.46
8.0.250.0040.00416.84
8.0.240.0030.00316.96
8.0.230.0000.00716.89
8.0.220.0080.00316.75
8.0.210.0070.00016.75
8.0.200.0070.00016.79
8.0.190.0000.00716.91
8.0.180.0000.00816.86
8.0.170.0040.00416.89
8.0.160.0050.00716.79
8.0.150.0030.00316.81
8.0.140.0000.00716.68
8.0.130.0050.00013.28
8.0.120.0040.00416.83
8.0.110.0030.00516.75
8.0.100.0030.00516.67
8.0.90.0000.00716.72
8.0.80.0110.00416.77
8.0.70.0040.00416.86
8.0.60.0070.00016.73
8.0.50.0040.00416.95
8.0.30.0120.00617.03
8.0.20.0090.00917.40
8.0.10.0000.00717.02
8.0.00.0110.00816.77
7.4.330.0000.00415.55
7.4.320.0030.00316.59
7.4.300.0030.00316.33
7.4.290.0040.00416.52
7.4.280.0030.00616.52
7.4.270.0060.00316.38
7.4.260.0060.00016.41
7.4.250.0000.00716.51
7.4.240.0030.00316.36
7.4.230.0030.00316.44
7.4.220.0050.00316.54
7.4.210.0060.01116.50
7.4.200.0000.00716.53
7.4.160.0070.01016.57
7.4.140.0090.00917.86
7.4.130.0090.01016.52
7.4.120.0130.01016.47
7.4.110.0130.00616.29
7.4.100.0120.01216.36
7.4.90.0080.00816.59
7.4.80.0070.01019.39
7.4.70.0080.00916.68
7.4.60.0080.00816.45
7.4.50.0040.01216.27
7.4.40.0100.01316.44
7.4.00.0090.00814.93
7.3.330.0020.00213.13
7.3.320.0030.00313.15
7.3.310.0080.00016.19
7.3.300.0070.00016.34
7.3.290.0030.00316.16
7.3.280.0080.00816.32
7.3.260.0130.01016.38
7.3.240.0100.00816.39
7.3.230.0070.01016.41
7.3.210.0150.00316.42
7.3.200.0030.01316.32
7.3.190.0070.01016.37
7.3.180.0060.01216.32
7.3.170.0060.01116.47
7.3.160.0130.00316.23
7.3.120.0040.01114.64
7.3.110.0090.00514.56
7.3.100.0080.00714.71
7.3.90.0080.00514.61
7.3.80.0080.00814.95
7.3.70.0060.00914.63
7.3.60.0070.00614.78
7.3.50.0080.00314.66
7.3.40.0070.00614.62
7.3.30.0040.00914.66
7.3.20.0380.01016.10
7.3.10.0220.00916.11
7.3.00.0190.00816.01
7.2.330.0170.00016.56
7.2.320.0110.00516.64
7.2.310.0070.01416.38
7.2.300.0040.01616.65
7.2.290.0080.00916.38
7.2.250.0090.01014.88
7.2.240.0060.01014.83
7.2.230.0060.01014.90
7.2.220.0070.00614.77
7.2.210.0050.01215.07
7.2.200.0050.01114.79
7.2.190.0030.01214.77
7.2.180.0080.00714.81
7.2.170.0050.00814.88
7.2.160.0020.01615.00
7.2.150.0260.01116.04
7.2.140.0320.00216.05
7.2.130.0280.00716.11
7.2.120.0190.01216.14
7.2.110.0340.00816.04
7.2.100.0310.00216.07
7.2.90.0330.00716.06
7.2.80.0210.00916.20
7.2.70.0220.01116.01
7.2.60.0250.00616.01
7.2.50.0290.00716.21
7.2.40.0290.01016.02
7.2.30.0360.00616.15
7.2.20.0380.00916.06
7.2.10.0410.00416.02
7.2.00.0290.00716.03
7.1.330.0060.00715.79
7.1.320.0030.01115.67
7.1.310.0080.00415.68
7.1.300.0070.00715.54
7.1.290.0040.00915.70
7.1.280.0050.00715.67
7.1.270.0050.00715.59
7.1.260.0100.00515.64
7.1.250.0270.00815.18
7.1.240.0110.00715.80
7.1.230.0000.01115.73
7.1.220.0140.00015.86
7.1.210.0060.00315.82
7.1.200.0030.01015.86
7.1.190.0030.00615.84
7.1.180.0030.01415.51
7.1.170.0100.00315.65
7.1.160.0030.01015.87
7.1.150.0000.01215.48
7.1.140.0060.00915.80
7.1.130.0120.00315.88
7.1.120.0060.00615.68
7.1.110.0030.00615.84
7.1.100.0120.00015.82
7.1.90.0030.01015.48
7.1.80.0030.00915.84
7.1.70.0080.00415.62
7.1.60.0040.00815.54
7.1.50.0000.00915.68
7.1.40.0000.01215.51
7.1.30.0060.00615.63
7.1.20.0060.00615.70
7.1.10.0000.01215.81
7.1.00.0050.00515.51

preferences:
30.96 ms | 403 KiB | 5 Q