3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace X; class TestClass { public function __construct() { } public function __invoke() { } public function foo() { } public static function bar() { } } //$r = new \ReflectionMethod('TestClass::foo'); //$r = new \ReflectionMethod('TestClass::__construct'); //$r = new \ReflectionMethod(new TestClass(), '__construct'); //$r = new \ReflectionMethod('X\TestClass::bar'); //var_dump($r->class, $r->name); var_dump(is_callable(['X\TestClass', 'bar']));

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.0170.00318.18
8.3.50.0110.00822.00
8.3.40.0070.01418.75
8.3.30.0140.00018.96
8.3.20.0040.00420.25
8.3.10.0040.00420.26
8.3.00.0040.00417.13
8.2.180.0140.00416.50
8.2.170.0180.00422.96
8.2.160.0000.01820.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00322.25
8.2.110.0060.00320.38
8.2.100.0080.00417.97
8.2.90.0080.00019.16
8.2.80.0030.00617.97
8.2.70.0050.00317.38
8.2.60.0000.00817.66
8.2.50.0000.00818.07
8.2.40.0050.00318.09
8.2.30.0050.00317.99
8.2.20.0000.00717.49
8.2.10.0050.00217.95
8.2.00.0000.00817.43
8.1.280.0140.00725.92
8.1.270.0000.00823.96
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00723.96
8.1.230.0040.00719.25
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00617.00
8.1.190.0030.00616.97
8.1.180.0070.00018.10
8.1.170.0000.00818.51
8.1.160.0000.00822.00
8.1.150.0000.00718.73
8.1.140.0000.00817.33
8.1.130.0080.00017.82
8.1.120.0000.00717.32
8.1.110.0040.00417.20
8.1.100.0000.00717.29
8.1.90.0000.00717.22
8.1.80.0030.00317.29
8.1.70.0000.00717.30
8.1.60.0060.00317.45
8.1.50.0000.00817.32
8.1.40.0080.00017.43
8.1.30.0060.00317.38
8.1.20.0000.00717.54
8.1.10.0070.00017.27
8.1.00.0040.00417.30
8.0.300.0050.00318.77
8.0.290.0070.00016.63
8.0.280.0030.00318.32
8.0.270.0080.00017.14
8.0.260.0000.00616.98
8.0.250.0000.00716.86
8.0.240.0040.00416.74
8.0.230.0040.00416.82
8.0.220.0000.00716.83
8.0.210.0060.00016.67
8.0.200.0070.00016.71
8.0.190.0000.00816.79
8.0.180.0000.00816.82
8.0.170.0000.00816.83
8.0.160.0000.00716.79
8.0.150.0030.00316.61
8.0.140.0000.00716.75
8.0.130.0000.00613.18
8.0.120.0000.00816.74
8.0.110.0040.00416.73
8.0.100.0000.00716.83
8.0.90.0040.00416.81
8.0.80.0090.01216.65
8.0.70.0050.00216.84
8.0.60.0040.00416.88
8.0.50.0000.00716.64
8.0.30.0100.01017.09
8.0.20.0080.01017.40
8.0.10.0000.00716.77
8.0.00.0110.00916.63
7.4.330.0000.00615.00
7.4.320.0000.00616.28
7.4.300.0030.00316.29
7.4.290.0040.00416.47
7.4.280.0030.00516.45
7.4.270.0040.00416.36
7.4.260.0030.00316.43
7.4.250.0000.00716.33
7.4.240.0040.00416.38
7.4.230.0000.00716.47
7.4.220.0090.00916.40
7.4.210.0080.00816.48
7.4.200.0070.00016.40
7.4.160.0110.01116.31
7.4.150.0150.00317.40
7.4.140.0090.00817.86
7.4.130.0100.00616.24
7.4.120.0070.00916.27
7.4.110.0070.01116.30
7.4.100.0030.01516.42
7.4.90.0070.01016.49
7.4.80.0090.00619.39
7.4.70.0110.00516.31
7.4.60.0060.01216.45
7.4.50.0000.00416.39
7.4.40.0120.00416.14
7.4.30.0070.01016.36
7.4.00.0070.01015.00
7.3.330.0000.00713.17
7.3.320.0000.00513.11
7.3.310.0000.00716.02
7.3.300.0030.00316.23
7.3.290.0100.00316.13
7.3.280.0080.00916.17
7.3.270.0090.00917.40
7.3.260.0090.00816.23
7.3.250.0080.01016.17
7.3.240.0160.00016.18
7.3.230.0080.00816.39
7.3.210.0100.00716.36
7.3.200.0060.01519.39
7.3.190.0150.00616.36
7.3.180.0100.00716.20
7.3.170.0090.00916.27
7.3.160.0130.00316.14
7.3.10.0170.00715.73
7.3.00.0210.00515.54
7.2.330.0030.01316.51
7.2.320.0100.00716.33
7.2.310.0100.01016.50
7.2.300.0060.01116.34
7.2.290.0030.01416.66
7.2.130.0180.00715.76
7.2.120.0170.00715.81
7.2.110.0210.00515.63
7.2.100.0200.00415.88
7.2.90.0220.01115.81
7.2.80.0240.01016.02
7.2.70.0250.00915.95
7.2.60.0180.00816.00
7.2.50.0220.01016.16
7.2.40.0200.01015.85
7.2.30.0240.00816.02
7.2.20.0300.00515.97
7.2.10.0210.01015.79
7.2.00.0180.01016.73
7.1.250.0210.00414.61
7.1.240.0390.00713.65
7.1.230.0450.00613.83
7.1.220.1000.01313.81
7.1.210.0370.01213.51
7.1.200.0510.01113.66
7.1.190.0490.01113.55
7.1.180.0420.01113.89
7.1.170.0410.00613.90
7.1.160.0450.01613.54
7.1.150.0540.00313.80
7.1.140.0540.01413.83
7.1.130.0500.00813.52
7.1.120.0390.01313.80
7.1.110.0460.00313.62
7.1.100.0390.00615.60
7.1.90.0480.01613.78
7.1.80.0390.01113.59
7.1.70.0210.01015.41
7.1.60.0290.01116.52
7.1.50.0240.01615.38
7.1.40.0440.00313.35
7.1.30.0490.01013.76
7.1.20.0490.00313.79
7.1.10.0490.00413.54
7.1.00.0220.03818.05
7.0.330.0420.01113.51
7.0.320.0460.00713.48
7.0.310.0390.00713.27
7.0.300.0490.00713.50
7.0.290.0480.01013.49
7.0.280.0410.00613.23
7.0.270.0550.01013.39
7.0.260.0480.00613.57
7.0.250.0520.01013.51
7.0.240.0470.01813.59
7.0.230.0620.00913.29
7.0.220.0330.01113.45
7.0.210.0540.00613.60
7.0.200.0220.00815.03
7.0.190.0600.00413.55
7.0.180.0480.01113.45
7.0.170.0380.00713.56
7.0.160.0400.01213.46
7.0.150.0510.00613.34
7.0.140.0260.03817.78
7.0.130.0360.00313.53
7.0.120.0370.00913.36
7.0.110.0550.00613.49
7.0.100.0210.04516.74
7.0.90.0370.04616.60
7.0.80.0200.04216.79
7.0.70.0460.03816.71
7.0.60.0250.04216.57
7.0.50.0240.02516.75
7.0.40.0270.02716.84
7.0.30.0250.03516.77
7.0.20.0220.04916.78
7.0.10.0270.02616.82
7.0.00.0280.03516.83
5.6.380.0090.01213.99
5.6.370.0090.01813.77
5.6.360.0160.00713.97
5.6.350.0120.00814.43
5.6.340.0120.01514.09
5.6.330.0250.00613.77
5.6.320.0240.00314.29
5.6.310.0170.01714.07
5.6.300.0090.02113.80
5.6.290.0190.01014.30
5.6.280.0150.03717.41
5.6.270.0090.01713.87
5.6.260.0110.01514.05
5.6.250.0160.03817.35
5.6.240.0110.04917.34
5.6.230.0120.04217.51
5.6.220.0100.04617.36
5.6.210.0180.04217.50
5.6.200.0150.04217.60
5.6.190.0100.03417.67
5.6.180.0110.03217.61
5.6.170.0110.03417.57
5.6.160.0140.02817.71
5.6.150.0110.02817.58
5.6.140.0130.04017.70
5.6.130.0080.02917.64
5.6.120.0110.02717.44
5.6.110.0110.02517.58
5.6.100.0150.04317.48
5.6.90.0160.02617.57
5.6.80.0120.03517.36
5.6.70.0140.04217.34
5.6.60.0140.01817.21
5.6.50.0110.03617.32
5.6.40.0110.04717.29
5.6.30.0070.03017.26
5.6.20.0100.04517.13
5.6.10.0050.03217.20
5.6.00.0110.02417.14
5.5.380.0090.04215.75
5.5.370.0120.04115.69
5.5.360.0030.05015.86
5.5.350.0140.04015.71
5.5.340.0120.03615.98
5.5.330.0150.04315.80
5.5.320.0100.03715.78
5.5.310.0070.04016.08
5.5.300.0070.04815.97
5.5.290.0100.04615.99
5.5.280.0080.04515.82
5.5.270.0120.04015.76
5.5.260.0150.03615.71
5.5.250.0150.03515.78
5.5.240.0070.03615.47
5.5.230.0090.03615.43
5.5.220.0120.02015.59
5.5.210.0070.02915.42
5.5.200.0060.04315.56
5.5.190.0110.04115.43
5.5.180.0050.03315.61
5.5.170.0110.00711.09
5.5.160.0030.03515.58
5.5.150.0120.03215.54
5.5.140.0100.03715.30
5.5.130.0040.02515.49
5.5.120.0020.04515.54
5.5.110.0160.03115.58
5.5.100.0150.02615.42
5.5.90.0070.02815.51
5.5.80.0110.02215.39
5.5.70.0160.03315.56
5.5.60.0100.04315.51
5.5.50.0150.03515.30
5.5.40.0060.04415.51
5.5.30.0070.04615.37
5.5.20.0070.02515.61
5.5.10.0090.02915.44
5.5.00.0080.02415.47
5.4.450.0070.02714.93
5.4.440.0130.03215.29
5.4.430.0120.02815.16
5.4.420.0190.03515.19
5.4.410.0110.03015.15
5.4.400.0060.04315.00
5.4.390.0090.04015.02
5.4.380.0090.02414.73
5.4.370.0080.03815.14
5.4.360.0100.02814.87
5.4.350.0080.03614.90
5.4.340.0080.04614.72
5.4.330.0060.01310.86
5.4.320.0140.04314.97
5.4.310.0060.02114.81
5.4.300.0110.03914.96
5.4.290.0140.02514.85
5.4.280.0140.03915.16
5.4.270.0130.03314.78
5.4.260.0060.02814.76
5.4.250.0140.04215.01
5.4.240.0100.02815.10
5.4.230.0090.04114.93
5.4.220.0070.03814.88
5.4.210.0110.03815.06
5.4.200.0120.02814.82
5.4.190.0120.02214.94
5.4.180.0070.04214.82
5.4.170.0120.02215.11
5.4.160.0080.02614.79
5.4.150.0110.03314.80
5.4.140.0090.04213.51
5.4.130.0100.02513.46
5.4.120.0070.04013.74
5.4.110.0000.02813.86
5.4.100.0120.02513.73
5.4.90.0120.02213.66
5.4.80.0150.03113.63
5.4.70.0120.03813.75
5.4.60.0160.03913.72
5.4.50.0060.03713.79
5.4.40.0080.02513.77
5.4.30.0100.04113.54
5.4.20.0150.01813.54
5.4.10.0060.02913.65
5.4.00.0060.04113.23
5.3.290.0110.03512.55
5.3.280.0070.02712.38
5.3.270.0100.03512.48
5.3.260.0090.03412.39
5.3.250.0050.03012.43
5.3.240.0140.03912.40
5.3.230.0030.04712.33
5.3.220.0090.02112.30
5.3.210.0070.03612.35
5.3.200.0100.03712.44
5.3.190.0040.04612.38
5.3.180.0140.02712.45
5.3.170.0080.04012.55
5.3.160.0050.02412.58
5.3.150.0140.03312.48
5.3.140.0060.04112.48
5.3.130.0060.02812.44
5.3.120.0070.04312.49
5.3.110.0070.03312.46
5.3.100.0120.03112.14
5.3.90.0070.03312.12
5.3.80.0020.02512.10
5.3.70.0020.02612.21
5.3.60.0060.02112.01
5.3.50.0110.03912.09
5.3.40.0060.02912.05
5.3.30.0190.02912.03
5.3.20.0090.02011.88
5.3.10.0070.03811.73
5.3.00.0110.03911.88
5.2.170.0050.02510.15
5.2.160.0090.03010.16
5.2.150.0020.03910.13
5.2.140.0100.01810.06
5.2.130.0060.02510.00
5.2.120.0080.02510.08
5.2.110.0070.03010.08
5.2.100.0060.0309.95
5.2.90.0090.02910.19
5.2.80.0080.0349.99
5.2.70.0110.02810.00
5.2.60.0050.03310.13
5.2.50.0040.03610.09
5.2.40.0070.0339.99
5.2.30.0110.0309.94
5.2.20.0110.03210.04
5.2.10.0050.0229.93
5.2.00.0050.0329.88
5.1.60.0060.0219.49
5.1.50.0080.0179.52
5.1.40.0050.0279.48
5.1.30.0100.0149.70
5.1.20.0050.0159.63
5.1.10.0060.0329.54
5.1.00.0040.0229.55
5.0.50.0060.0238.76
5.0.40.0060.0198.72
5.0.30.0020.0228.72
5.0.20.0070.0208.72
5.0.10.0070.0208.72
5.0.00.0040.0378.72
4.4.90.0080.0178.72
4.4.80.0060.0088.72
4.4.70.0060.0178.72
4.4.60.0040.0208.72
4.4.50.0070.0158.72
4.4.40.0030.0298.72
4.4.30.0030.0118.72
4.4.20.0020.0148.72
4.4.10.0030.0248.72
4.4.00.0050.0158.72
4.3.110.0040.0198.72
4.3.100.0030.0118.72
4.3.90.0030.0168.72
4.3.80.0080.0158.72
4.3.70.0000.0188.72
4.3.60.0050.0168.72
4.3.50.0020.0108.72
4.3.40.0050.0168.72
4.3.30.0020.0198.72
4.3.20.0030.0188.72
4.3.10.0050.0188.72
4.3.00.0000.0178.72

preferences:
51.09 ms | 401 KiB | 5 Q