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(['a' => 'X\TestClass', 'b' => '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.0060.01218.14
8.3.50.0200.00017.83
8.3.40.0150.00718.76
8.3.30.0030.01019.01
8.3.20.0040.00420.16
8.3.10.0040.00420.35
8.3.00.0030.00617.38
8.2.180.0040.01418.28
8.2.170.0100.00722.96
8.2.160.0000.01520.35
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00422.06
8.2.110.0060.00320.94
8.2.100.0130.00017.66
8.2.90.0040.00818.92
8.2.80.0080.00017.97
8.2.70.0040.00417.38
8.2.60.0000.00817.91
8.2.50.0050.00318.07
8.2.40.0070.00018.04
8.2.30.0080.00317.93
8.2.20.0040.00417.44
8.2.10.0040.00417.94
8.2.00.0070.00017.60
8.1.280.0040.01425.92
8.1.270.0050.00323.88
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0000.00921.12
8.1.230.0040.00818.90
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0030.00617.35
8.1.190.0030.00617.22
8.1.180.0040.00418.10
8.1.170.0040.00418.38
8.1.160.0000.00718.72
8.1.150.0000.00718.76
8.1.140.0040.00417.30
8.1.130.0040.00417.76
8.1.120.0040.00417.23
8.1.110.0050.00217.36
8.1.100.0040.00417.32
8.1.90.0030.00317.38
8.1.80.0040.00417.40
8.1.70.0070.00017.34
8.1.60.0060.00317.38
8.1.50.0000.00917.29
8.1.40.0050.00217.38
8.1.30.0000.00917.57
8.1.20.0000.00717.54
8.1.10.0040.00417.27
8.1.00.0040.00417.32
8.0.300.0080.00018.77
8.0.290.0000.00716.63
8.0.280.0040.00418.33
8.0.270.0000.00817.18
8.0.260.0000.00617.00
8.0.250.0040.00416.80
8.0.240.0030.00516.67
8.0.230.0070.00016.84
8.0.220.0030.00316.79
8.0.210.0000.00716.79
8.0.200.0000.00616.83
8.0.190.0040.00416.69
8.0.180.0070.00016.77
8.0.170.0000.00916.75
8.0.160.0070.00016.64
8.0.150.0030.00316.73
8.0.140.0050.00216.78
8.0.130.0000.00713.21
8.0.120.0040.00416.75
8.0.110.0040.00416.67
8.0.100.0000.00716.77
8.0.90.0050.00216.68
8.0.80.0040.01716.65
8.0.70.0040.00416.77
8.0.60.0030.00416.67
8.0.50.0000.00716.77
8.0.30.0110.00716.85
8.0.20.0110.00817.40
8.0.10.0070.00016.83
8.0.00.0120.00516.73
7.4.330.0000.00515.00
7.4.320.0060.00016.42
7.4.300.0030.00316.47
7.4.290.0000.00716.30
7.4.280.0000.00916.41
7.4.270.0000.00716.52
7.4.260.0030.00316.41
7.4.250.0080.00016.41
7.4.240.0020.00516.37
7.4.230.0070.00016.48
7.4.220.0110.00716.24
7.4.210.0120.00616.46
7.4.200.0070.00016.50
7.4.160.0110.00616.29
7.4.150.0130.00517.40
7.4.140.0100.00817.86
7.4.130.0120.00516.35
7.4.120.0110.00516.29
7.4.110.0060.01216.28
7.4.100.0060.01016.32
7.4.90.0030.01316.41
7.4.80.0060.01119.39
7.4.70.0120.00616.40
7.4.60.0170.00316.32
7.4.50.0040.00416.28
7.4.40.0060.01616.10
7.4.30.0160.00416.26
7.4.10.0070.01314.82
7.4.00.0070.01214.91
7.3.330.0000.00613.16
7.3.320.0050.00013.04
7.3.310.0000.00816.13
7.3.300.0060.00016.22
7.3.290.0030.01016.14
7.3.280.0080.01016.15
7.3.270.0060.01317.40
7.3.260.0120.00616.15
7.3.250.0150.00316.49
7.3.240.0060.01016.23
7.3.230.0150.00016.39
7.3.210.0100.00716.32
7.3.200.0090.01219.39
7.3.190.0030.01416.46
7.3.180.0060.01016.23
7.3.170.0120.00416.43
7.3.160.0080.00816.25
7.3.130.0100.01014.34
7.3.120.0070.01314.64
7.3.110.0070.01114.78
7.3.100.0000.01114.47
7.3.90.0100.00714.88
7.3.80.0040.01114.71
7.3.70.0070.00414.80
7.3.60.0040.00814.49
7.3.50.0060.00614.73
7.3.40.0060.00614.71
7.3.30.0070.00714.63
7.3.20.0030.00616.42
7.3.10.0100.00716.23
7.3.00.0070.00816.07
7.2.330.0100.00716.63
7.2.320.0070.01016.27
7.2.310.0100.00716.13
7.2.300.0180.00016.53
7.2.290.0070.01016.62
7.2.260.0030.00914.92
7.2.250.0080.01114.98
7.2.240.0070.00715.08
7.2.230.0090.00614.79
7.2.220.0030.01114.68
7.2.210.0070.00714.83
7.2.200.0060.00314.63
7.2.190.0070.00714.56
7.2.180.0060.00614.96
7.2.170.0090.00914.79
7.2.160.0030.01314.54
7.2.150.0060.00916.68
7.2.140.0030.01216.89
7.2.130.0150.00716.46
7.2.120.0100.00516.70
7.2.110.0120.00716.70
7.2.100.0110.00816.65
7.2.90.0090.00816.69
7.2.80.0120.00616.57
7.2.70.0090.00616.50
7.2.60.0100.01016.65
7.2.50.0080.00816.41
7.2.40.0080.00516.61
7.2.30.0060.00716.59
7.2.20.0070.00716.72
7.2.10.0080.00516.58
7.2.00.0060.00617.32
7.1.330.0100.00715.60
7.1.320.0000.01115.40
7.1.310.0030.01015.48
7.1.300.0070.01115.58
7.1.290.0000.00915.39
7.1.280.0110.00315.21
7.1.270.0030.01015.53
7.1.260.0070.01015.54
7.1.250.0090.00515.47
7.1.240.0100.00315.25
7.1.230.0000.01415.57
7.1.220.0030.01015.42
7.1.210.0030.01415.55
7.1.200.0060.00815.46
7.1.190.0000.01415.64
7.1.180.0030.01315.39
7.1.170.0030.01315.53
7.1.160.0040.00715.51
7.1.150.0000.00815.43
7.1.140.0030.00915.50
7.1.130.0070.00315.56
7.1.120.0030.00715.46
7.1.110.0030.01015.67
7.1.100.0060.00816.66
7.1.90.0000.01015.52
7.1.80.0000.01415.58
7.1.70.0100.00516.28
7.1.60.0050.01417.49
7.1.50.0090.00415.90
7.1.40.0060.00815.71
7.1.30.0060.00915.45
7.1.20.0030.01015.45
7.1.10.0060.00615.48
7.1.00.0060.04118.80
7.0.330.0110.00415.30
7.0.320.0050.00315.07
7.0.310.0080.00415.24
7.0.300.0100.00315.20
7.0.290.0000.00815.34
7.0.280.0040.01115.00
7.0.270.0110.00015.06
7.0.260.0080.00415.30
7.0.250.0120.00315.27
7.0.240.0070.00315.29
7.0.230.0070.00715.41
7.0.220.0100.00715.24
7.0.210.0030.00615.27
7.0.200.0050.00715.82
7.0.190.0130.00315.30
7.0.180.0060.00615.34
7.0.170.0070.00715.11
7.0.160.0000.01515.34
7.0.150.0120.00415.21
7.0.140.0070.04018.53
7.0.130.0040.01115.12
7.0.120.0070.00315.17
7.0.110.0060.00615.35
7.0.100.0030.01015.34
7.0.90.0030.01015.23
7.0.80.0040.00415.16
7.0.70.0100.00715.14
7.0.60.0010.03017.48
7.0.50.0080.04216.46
7.0.40.0070.04516.60
7.0.30.0210.02416.81
7.0.20.0140.02116.75
7.0.10.0020.05016.81
7.0.00.0020.02916.61
5.6.400.0090.00013.78
5.6.390.0080.00814.50
5.6.380.0110.00614.28
5.6.370.0030.00913.75
5.6.360.0030.00914.21
5.6.350.0070.00714.33
5.6.340.0090.00614.38
5.6.330.0000.01413.85
5.6.320.0040.00714.26
5.6.310.0090.00613.94
5.6.300.0100.01014.26
5.6.290.0130.00614.19
5.6.280.0020.04417.57
5.6.270.0060.00614.38
5.6.260.0040.01113.99
5.6.250.0060.00614.04
5.6.240.0040.00414.19
5.6.230.0120.00314.20
5.6.220.0040.01213.86
5.6.210.0080.04717.30
5.6.200.0050.02516.16
5.6.190.0090.04517.35
5.6.180.0350.03617.41
5.6.170.0220.03817.13
5.6.160.0110.03817.30
5.6.150.0050.03716.27
5.6.140.0070.03716.21
5.6.130.0020.02816.14
5.6.120.0070.04217.49
5.6.110.0100.04017.43
5.6.100.0030.04417.56
5.6.90.0020.04917.59
5.6.80.0050.02317.23
5.6.70.0040.01114.06
5.6.60.0030.00914.13
5.6.50.0030.01413.93
5.6.40.0060.00614.02
5.6.30.0030.01014.09
5.6.20.0100.00314.02
5.6.10.0000.01513.83
5.6.00.0090.00613.93
5.5.380.0030.00614.02
5.5.370.0120.00614.18
5.5.360.0070.00713.75
5.5.350.0100.02817.34
5.5.340.0050.04516.06
5.5.330.0060.03317.31
5.5.320.0290.03517.35
5.5.310.0220.03017.24
5.5.300.0060.03916.01
5.5.290.0100.02515.95
5.5.280.0080.04017.48
5.5.270.0100.02117.39
5.5.260.0050.04717.29
5.5.250.0060.02917.30
5.5.240.0150.03316.95
5.5.230.0040.00813.98
5.5.220.0110.00313.93
5.5.210.0120.00314.10
5.5.200.0090.00614.20
5.5.190.0030.01013.64
5.5.180.0030.00713.75
5.5.170.0000.01413.67
5.5.160.0100.00014.23
5.5.150.0070.00714.07
5.5.140.0030.00613.54
5.5.130.0070.00714.05
5.5.120.0120.00413.87
5.5.110.0030.01014.16
5.5.100.0000.01414.04
5.5.90.0070.00413.95
5.5.80.0110.00013.98
5.5.70.0040.00714.03
5.5.60.0030.00714.04
5.5.50.0000.01114.02
5.5.40.0080.00613.72
5.5.30.0060.00914.01
5.5.20.0000.01014.25
5.5.10.0040.00914.01
5.5.00.0040.00913.90
5.4.450.0110.02616.01
5.4.440.0100.03715.95
5.4.430.0160.04316.05
5.4.420.0150.02715.96
5.4.410.0130.03716.02
5.4.400.0130.02015.90
5.4.390.0170.04015.83
5.4.380.0180.03316.02
5.4.370.0180.02315.90
5.4.360.0170.03015.89
5.4.350.0180.02815.94
5.4.340.0160.02715.96
5.4.330.0000.01012.72
5.4.320.0140.03115.93
5.4.310.0190.04015.93
5.4.300.0210.02615.84
5.4.290.0170.03315.85
5.4.280.0120.03415.98
5.4.270.0180.03715.79
5.4.260.0150.02415.96
5.4.250.0110.03915.96
5.4.240.0160.02315.90
5.4.230.0160.03815.85
5.4.220.0260.03215.94
5.4.210.0160.03015.88
5.4.200.0120.03015.96
5.4.190.0210.03215.97
5.4.180.0150.03215.89
5.4.170.0170.02815.97
5.4.160.0170.02515.96
5.4.150.0130.04215.92
5.4.140.0220.03214.57
5.4.130.0140.02214.62
5.4.120.0140.02014.60
5.4.110.0150.03814.59
5.4.100.0180.02014.44
5.4.90.0240.03314.58
5.4.80.0180.01814.58
5.4.70.0180.01714.63
5.4.60.0150.03714.62
5.4.50.0150.02214.63
5.4.40.0170.02114.46
5.4.30.0210.03014.47
5.4.20.0180.03514.61
5.4.10.0160.03814.63
5.4.00.0220.03114.25
5.3.290.0330.04714.64
5.3.280.0370.06714.57
5.3.270.0470.05314.58
5.3.260.0300.07014.68
5.3.250.0270.04314.52
5.3.240.0270.04714.58
5.3.230.0200.06014.57
5.3.220.0300.07014.57
5.3.210.0300.07714.73
5.3.200.0370.04314.48
5.3.190.0230.05014.73
5.3.180.0200.04314.48
5.3.170.0200.04014.61
5.3.160.0270.05014.48
5.3.150.0270.06714.46
5.3.140.0330.05014.48
5.3.130.0300.05714.71
5.3.120.0230.05314.46
5.3.110.0270.04314.45
5.3.100.0270.04314.13
5.3.90.0200.04314.14
5.3.80.0270.04313.93
5.3.70.0230.06313.94
5.3.60.0330.03314.01
5.3.50.0200.05313.86
5.3.40.0330.04314.02
5.3.30.0270.04013.98
5.3.20.0230.04713.63
5.3.10.0230.04013.75
5.3.00.0270.03713.61
5.2.170.0300.03712.10
5.2.160.0230.03312.10
5.2.150.0200.03012.10
5.2.140.0230.05312.10
5.2.130.0200.03312.10
5.2.120.0200.05012.10
5.2.110.0200.04012.10
5.2.100.0200.03312.10
5.2.90.0300.05012.10
5.2.80.0230.03012.10
5.2.70.0230.06012.10
5.2.60.0300.05712.10
5.2.50.0200.03312.10
5.2.40.0200.02712.10
5.2.30.0170.05312.10
5.2.20.0230.05712.10
5.2.10.0130.06712.10
5.2.00.0230.05712.10
5.1.60.0270.04012.10
5.1.50.0170.03312.10
5.1.40.0130.02712.10
5.1.30.0270.03012.10
5.1.20.0270.04712.10
5.1.10.0200.05312.10
5.1.00.0200.04712.10
5.0.50.0130.03012.10
5.0.40.0100.04012.10
5.0.30.0070.06312.10
5.0.20.0130.03012.10
5.0.10.0100.03312.10
5.0.00.0070.06712.10
4.4.90.0130.02712.10
4.4.80.0130.01712.10
4.4.70.0100.01712.10
4.4.60.0130.02012.10
4.4.50.0170.02012.10
4.4.40.0000.05712.10
4.4.30.0100.02712.10
4.4.20.0170.02012.10
4.4.10.0030.03712.10
4.4.00.0100.05312.10
4.3.110.0100.02712.10
4.3.100.0130.03012.10
4.3.90.0100.03312.10
4.3.80.0130.04712.10
4.3.70.0100.03312.10
4.3.60.0100.03712.10
4.3.50.0100.02712.10
4.3.40.0130.04712.10
4.3.30.0070.03312.10
4.3.20.0030.03712.10
4.3.10.0070.03712.10
4.3.00.0070.03312.10

preferences:
54.01 ms | 400 KiB | 5 Q