3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {}; class Bar extends Foo {}; $reflection_foo = new ReflectionClass(Foo::class); $testClass = function($class) use ($reflection_foo) { $reflection = new ReflectionClass($class); return $reflection->isSubclassOf(Foo::class) || ($reflection->getName() == $reflection_Foo->getName()); }; var_dump($testClass(Foo::class), $testClass(Bar::class));

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.0070.01418.43
8.3.50.0120.00721.03
8.3.40.0070.00718.97
8.3.30.0130.01018.57
8.3.20.0080.00020.15
8.3.10.0040.00421.60
8.3.00.0040.00418.03
8.2.180.0130.00618.43
8.2.170.0120.00922.96
8.2.160.0100.01020.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00926.16
8.2.120.0030.00617.75
8.2.110.0090.00922.27
8.2.100.0150.00017.78
8.2.90.0030.00619.16
8.2.80.0030.00617.97
8.2.70.0000.00817.78
8.2.60.0040.00417.93
8.2.50.0000.01118.10
8.2.40.0070.00020.63
8.2.30.0040.00419.85
8.2.20.0040.00417.87
8.2.10.0000.00818.09
8.2.00.0080.00018.13
8.1.280.0080.00825.92
8.1.270.0040.01420.23
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0080.00020.87
8.1.230.0080.00317.64
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0040.00417.35
8.1.190.0030.00617.35
8.1.180.0040.00418.10
8.1.170.0000.00818.65
8.1.160.0000.00722.20
8.1.150.0030.00518.80
8.1.140.0000.00817.47
8.1.130.0000.00717.59
8.1.120.0040.00417.41
8.1.110.0030.00317.56
8.1.100.0000.00717.50
8.1.90.0030.00417.33
8.1.80.0040.00417.34
8.1.70.0080.00017.50
8.1.60.0060.00317.60
8.1.50.0020.00517.52
8.1.40.0050.00217.55
8.1.30.0040.00417.64
8.1.20.0030.00617.72
8.1.10.0040.00417.63
8.1.00.0000.00717.52
8.0.300.0030.00618.77
8.0.290.0090.00316.75
8.0.280.0040.00418.46
8.0.270.0030.00317.27
8.0.260.0040.00417.30
8.0.250.0030.00516.94
8.0.240.0040.00416.88
8.0.230.0070.00017.04
8.0.220.0000.00716.96
8.0.210.0000.00816.93
8.0.200.0050.00216.91
8.0.190.0040.00417.05
8.0.180.0000.00717.02
8.0.170.0000.00817.02
8.0.160.0030.00516.88
8.0.150.0020.00516.93
8.0.140.0040.00417.00
8.0.130.0040.00413.46
8.0.120.0040.00416.79
8.0.110.0040.00416.98
8.0.100.0040.00417.03
8.0.90.0030.00517.03
8.0.80.0060.00917.00
8.0.70.0000.00716.85
8.0.60.0050.00316.97
8.0.50.0000.00716.98
8.0.30.0120.00516.90
8.0.20.0130.00617.41
8.0.10.0040.00416.96
8.0.00.0120.01016.83
7.4.330.0060.00015.08
7.4.320.0030.00316.61
7.4.300.0000.00716.65
7.4.290.0030.00316.60
7.4.280.0060.00316.52
7.4.270.0070.00016.59
7.4.260.0000.00716.45
7.4.250.0080.00016.62
7.4.240.0000.00716.58
7.4.230.0070.00016.61
7.4.220.0120.00916.52
7.4.210.0120.00216.58
7.4.200.0000.00716.55
7.4.160.0130.00316.29
7.4.150.0140.00317.40
7.4.140.0080.01117.86
7.4.130.0110.00916.56
7.4.120.0080.01016.49
7.4.110.0070.01416.65
7.4.100.0010.00916.38
7.4.90.0120.00616.51
7.4.80.0140.00319.39
7.4.70.0070.01016.35
7.4.60.0090.00616.45
7.4.50.0050.00316.44
7.4.40.0210.00016.56
7.4.30.0120.00916.66
7.4.00.0040.01115.02
7.3.330.0030.00313.20
7.3.320.0000.00513.39
7.3.310.0000.00716.39
7.3.300.0070.00016.38
7.3.290.0000.00716.36
7.3.280.0070.00916.39
7.3.270.0100.01317.40
7.3.260.0040.01416.56
7.3.250.0120.00616.48
7.3.240.0170.00316.39
7.3.230.0100.00716.48
7.3.210.0100.00716.61
7.3.200.0070.01016.54
7.3.190.0110.00416.52
7.3.180.0100.00716.41
7.3.170.0070.00816.58
7.3.160.0120.00416.41
7.3.00.0090.00916.56
7.2.330.0070.01016.79
7.2.320.0110.00716.81
7.2.310.0190.00516.72
7.2.300.0030.01316.62
7.2.290.0070.01416.69
7.2.130.0120.00616.63
7.2.120.0140.00016.79
7.2.110.0060.00916.65
7.2.100.0150.00316.63
7.2.90.0170.00316.93
7.2.80.0070.01116.57
7.2.70.0130.00616.87
7.2.60.0060.01016.75
7.2.50.0130.00916.93
7.2.40.0140.00016.98
7.2.30.0090.00916.79
7.2.20.0060.00616.79
7.2.10.0040.01516.74
7.2.00.0060.00718.17
7.1.250.0120.00415.52
7.1.240.0070.01015.43
7.1.230.0000.01215.86
7.1.220.0090.00915.84
7.1.210.0070.00715.75
7.1.200.0120.00715.57
7.1.190.0130.00315.83
7.1.180.0110.00815.98
7.1.170.0110.00715.48
7.1.160.0060.00615.67
7.1.150.0070.01015.47
7.1.140.0090.00915.66
7.1.130.0110.00715.65
7.1.120.0090.00615.70
7.1.110.0070.01115.78
7.1.100.0070.00516.72
7.1.90.0090.00915.68
7.1.80.0070.01015.61
7.1.70.0070.00816.39
7.1.60.0130.00317.45
7.1.50.0110.00816.15
7.1.40.0090.00615.88
7.1.30.0070.01015.45
7.1.20.0130.00715.56
7.1.10.0070.00715.51
7.1.00.0060.03919.02
7.0.330.0060.01314.93
7.0.320.0120.01215.41
7.0.310.0260.00415.48
7.0.300.0170.00415.31
7.0.290.0140.00314.99
7.0.280.0240.00314.97
7.0.270.0070.00715.14
7.0.260.0030.00915.17
7.0.250.0040.01715.34
7.0.240.0120.00415.23
7.0.230.0120.01215.41
7.0.220.0200.00715.27
7.0.210.0160.00715.43
7.0.200.0090.00816.08
7.0.190.0130.01315.40
7.0.180.0170.01015.51
7.0.170.0150.01215.49
7.0.160.0150.00515.13
7.0.150.0150.00015.00
7.0.140.0100.00615.27
7.0.130.0070.00715.34
7.0.120.0090.00615.18
7.0.110.0060.00915.27
7.0.100.0000.01315.29
7.0.90.0110.00315.21
7.0.80.0160.00315.45
7.0.70.0070.00715.12
7.0.60.0060.02417.53
7.0.50.0050.02316.58
7.0.40.0050.04716.63
7.0.30.0150.02716.59
7.0.20.0150.04516.47
7.0.10.0020.03216.59
7.0.00.0060.04516.75
5.6.380.0060.00614.13
5.6.370.0070.00714.15
5.6.360.0090.00314.52
5.6.350.0060.00614.51
5.6.340.0000.01514.43
5.6.330.0070.00314.14
5.6.320.0130.00314.12
5.6.310.0030.01014.28
5.6.300.0060.00613.68
5.6.290.0030.00714.33
5.6.280.0050.01817.64
5.6.270.0110.00414.09
5.6.260.0070.00414.22
5.6.250.0030.00714.25
5.6.240.0110.00314.14
5.6.230.0000.01413.88
5.6.220.0000.00914.16
5.6.210.0070.04117.54
5.6.200.0050.02316.22
5.6.190.0060.03517.52
5.6.180.1830.02317.52
5.6.170.0220.02717.50
5.6.160.0080.02117.34
5.6.150.0050.03716.07
5.6.140.0070.02516.17
5.6.130.0020.02716.15
5.6.120.0090.03017.54
5.6.110.0100.03617.58
5.6.100.0070.04917.72
5.6.90.0110.03817.57
5.6.80.0070.02017.35
5.6.70.1730.01817.27
5.6.60.0000.01314.19
5.6.50.0070.00714.23
5.6.40.0130.00014.00
5.6.30.0070.00714.18
5.6.20.0070.00313.95
5.6.10.0060.00913.93
5.6.00.0030.00813.87
5.5.380.0070.00010.93
5.5.370.0040.00310.90
5.5.360.0050.00510.98
5.5.350.0030.04515.70
5.5.340.0030.04114.58
5.5.330.0050.04315.73
5.5.320.0210.03815.69
5.5.310.0150.02515.72
5.5.300.0070.02514.53
5.5.290.0080.01814.55
5.5.280.0030.02515.98
5.5.270.0050.03215.88
5.5.260.0100.03216.09
5.5.250.0080.02115.68
5.5.240.0070.04215.59
5.5.230.0000.01110.95
5.5.220.0060.00311.11
5.5.210.0050.00510.90
5.5.200.0000.01111.19
5.5.190.0070.00310.90
5.5.180.0060.00610.90
5.5.170.0060.00610.90
5.5.160.0030.01010.90
5.5.150.0000.00710.93
5.5.140.0030.00910.90
5.5.130.0000.01111.00
5.5.120.0090.00311.15
5.5.110.0040.00710.98
5.5.100.0060.00610.90
5.5.90.0060.00310.90
5.5.80.0060.00611.15
5.5.70.0040.00710.90
5.5.60.0050.00211.07
5.5.50.0040.00410.95
5.5.40.0030.00910.90
5.5.30.0030.00611.05
5.5.20.0080.00010.94
5.5.10.0060.00610.90
5.5.00.0000.00810.90
5.4.450.0390.02915.24
5.4.440.0390.02815.14
5.4.430.0280.03815.04
5.4.420.0280.03215.10
5.4.410.0380.02515.05
5.4.400.0350.02714.96
5.4.390.0330.03815.07
5.4.380.0360.02515.07
5.4.370.0360.02715.08
5.4.360.0080.03815.08
5.4.350.0130.03515.02
5.4.340.0370.03014.96
5.4.330.0030.00610.90
5.4.320.0270.02815.00
5.4.310.0120.02314.87
5.4.300.0110.03114.88
5.4.290.0220.03415.01
5.4.280.0130.02915.01
5.4.270.0070.02915.06
5.4.260.0200.02715.00
5.4.250.0300.02915.08
5.4.240.0300.02814.99
5.4.230.0280.03114.98
5.4.220.0290.03115.02
5.4.210.0290.02715.08
5.4.200.0280.03115.02
5.4.190.0320.03015.07
5.4.180.0350.02514.88
5.4.170.0330.03015.09
5.4.160.0300.03215.08
5.4.150.0270.03215.07
5.4.140.0320.03013.70
5.4.130.0320.02813.84
5.4.120.0300.02813.75
5.4.110.0270.03313.73
5.4.100.0350.02513.70
5.4.90.0370.02813.74
5.4.80.0370.02813.73
5.4.70.0120.01713.69
5.4.60.0100.02413.59
5.4.50.0030.02813.60
5.4.40.0180.03513.72
5.4.30.0040.03913.57
5.4.20.0170.03813.66
5.4.10.0040.00410.90
5.4.00.0000.01010.90

preferences:
47.23 ms | 401 KiB | 5 Q