3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Name\Space; class Foo { public static function bar() { } } $reflection = new \ReflectionMethod('Name\\Space\\Foo', 'bar'); $closure = $reflection->getClosure(null); $reflection2 = new \ReflectionFunction($closure); echo PHP_EOL; echo PHP_EOL; $ReflectionClass = get_class($reflection); $ReflectionCeption = new \ReflectionClass($ReflectionClass); foreach ($ReflectionCeption->getMethods(\ReflectionMethod::IS_PUBLIC) as $Method) { if(!$Method->isStatic() && $Method->getNumberOfParameters() === 0) { echo sprintf('%s::%s(): ', $ReflectionClass, $Method->name); var_dump($Method->invoke($reflection)); echo PHP_EOL; } }

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.0110.00716.63
8.3.50.0130.00822.80
8.3.40.0080.00818.61
8.3.30.0070.00719.13
8.3.20.0040.00419.97
8.3.10.0040.00423.61
8.3.00.0050.00319.51
8.2.180.0180.00016.88
8.2.170.0140.00022.96
8.2.160.0000.01420.35
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.01126.16
8.2.120.0080.00020.96
8.2.110.0070.00421.04
8.2.100.0080.00418.22
8.2.90.0040.00419.22
8.2.80.0000.00817.97
8.2.70.0000.00817.59
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0080.00020.01
8.2.30.0000.00818.16
8.2.20.0060.00317.79
8.2.10.0000.00718.11
8.2.00.0080.00017.75
8.1.280.0090.00625.92
8.1.270.0000.00923.86
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0000.00923.92
8.1.230.0110.00019.48
8.1.220.0050.00317.76
8.1.210.0040.00418.77
8.1.200.0080.00317.34
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0080.00018.59
8.1.160.0000.00722.05
8.1.150.0050.00318.93
8.1.140.0020.00517.50
8.1.130.0070.00017.86
8.1.120.0000.00717.47
8.1.110.0040.00417.49
8.1.100.0030.00317.49
8.1.90.0050.00217.41
8.1.80.0080.00017.52
8.1.70.0080.00017.42
8.1.60.0060.00317.57
8.1.50.0050.00317.57
8.1.40.0080.00017.44
8.1.30.0000.00817.70
8.1.20.0040.00417.71
8.1.10.0030.00517.61
8.1.00.0000.00817.60
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0000.00818.46
8.0.270.0040.00417.29
8.0.260.0000.00617.20
8.0.250.0000.00817.08
8.0.240.0030.00317.04
8.0.230.0000.00717.00
8.0.220.0070.00016.96
8.0.210.0030.00316.99
8.0.200.0070.00017.07
8.0.190.0030.00616.98
8.0.180.0080.00017.01
8.0.170.0030.00617.08
8.0.160.0000.00716.90
8.0.150.0020.00516.96
8.0.140.0040.00416.86
8.0.130.0060.00313.43
8.0.120.0030.00516.98
8.0.110.0040.00416.98
8.0.100.0040.00417.02
8.0.90.0040.00417.04
8.0.80.0060.00917.01
8.0.70.0000.00717.05
8.0.60.0080.00017.03
8.0.50.0040.00416.89
8.0.30.0080.01317.25
8.0.20.0100.01117.40
8.0.10.0050.00317.15
8.0.00.0100.01016.73
7.4.330.0050.00015.05
7.4.320.0030.00316.64
7.4.300.0040.00416.52
7.4.290.0030.00316.64
7.4.280.0000.00716.65
7.4.270.0040.00416.62
7.4.260.0080.00316.64
7.4.250.0000.00816.50
7.4.240.0070.00016.66
7.4.230.0050.00216.45
7.4.220.0140.00416.68
7.4.210.0030.01116.61
7.4.200.0000.00816.53
7.4.160.0130.00616.60
7.4.150.0090.01217.40
7.4.140.0100.01017.86
7.4.130.0070.01016.50
7.4.120.0130.00516.63
7.4.110.0060.01216.33
7.4.100.0090.01116.57
7.4.90.0120.00616.64
7.4.80.0070.01419.39
7.4.70.0130.00816.47
7.4.60.0120.00616.62
7.4.50.0030.00616.56
7.4.40.0090.01216.59
7.4.30.0050.01116.57
7.4.00.0080.01015.06
7.3.330.0000.00513.26
7.3.320.0050.00013.38
7.3.310.0040.00416.27
7.3.300.0070.00016.32
7.3.290.0070.00816.39
7.3.280.0100.00916.38
7.3.270.0040.02917.40
7.3.260.0090.00916.76
7.3.250.0080.01716.71
7.3.240.0060.01316.34
7.3.230.0100.01016.58
7.3.210.0030.02116.34
7.3.200.0100.01019.39
7.3.190.0070.01616.59
7.3.180.0110.01116.42
7.3.170.0030.01216.45
7.3.160.0060.00916.55
7.3.120.0060.01014.86
7.3.110.0070.00814.86
7.3.100.0050.01114.78
7.3.90.0050.01214.82
7.3.80.0070.00914.84
7.3.70.0110.00614.77
7.3.60.0080.00814.85
7.3.50.0070.00514.90
7.3.40.0070.00614.65
7.3.30.0110.00314.92
7.3.20.0080.00816.56
7.3.10.0120.00516.63
7.3.00.0070.00816.58
7.2.330.0120.00616.84
7.2.320.0090.00916.76
7.2.310.0030.01316.87
7.2.300.0120.00616.53
7.2.290.0090.00616.48
7.2.250.0090.00915.22
7.2.240.0120.00715.21
7.2.230.0090.00814.94
7.2.220.0060.01115.10
7.2.210.0050.00915.21
7.2.200.0090.00615.06
7.2.190.0020.01015.21
7.2.180.0080.00815.03
7.2.170.0070.00815.11
7.2.160.0000.01615.15
7.2.150.0070.01117.02
7.2.140.0000.01516.97
7.2.130.0110.00616.93
7.2.120.0130.00416.85
7.2.110.0100.00816.72
7.2.100.0060.01016.79
7.2.90.0060.01016.88
7.2.80.0090.00916.61
7.2.70.0070.01116.81
7.2.60.0080.00816.66
7.2.50.0130.00516.79
7.2.40.0130.00516.98
7.2.30.0090.00716.79
7.2.20.0070.00916.82
7.2.10.0080.00716.77
7.2.00.0070.00717.56
7.1.330.0070.00615.77
7.1.320.0020.01115.93
7.1.310.0090.00615.77
7.1.300.0080.00415.89
7.1.290.0060.00715.74
7.1.280.0050.01015.78
7.1.270.0070.00715.76
7.1.260.0050.00915.89
7.1.250.0040.01015.63
7.1.200.0100.00315.77
7.1.100.0670.01015.96
7.1.70.0000.01616.96
7.1.60.0070.01319.40
7.1.50.0040.02116.70
7.1.00.0100.07722.44
7.0.200.0030.00316.88
7.0.140.0030.07022.21
7.0.60.0070.06019.86
7.0.50.0100.03717.90
7.0.40.0030.09020.09
7.0.30.0400.06720.08
7.0.20.0270.08020.15
7.0.10.0100.05320.30
7.0.00.0170.07020.14
5.6.280.0030.07321.11
5.6.210.0030.08020.49
5.6.200.0170.06718.16
5.6.190.0030.06020.62
5.6.180.0270.08320.48
5.6.170.0270.04020.44
5.6.160.0130.07720.48
5.6.150.0070.07018.19
5.6.140.0170.03318.16
5.6.130.0070.03718.23
5.6.120.0100.08321.02
5.6.110.0070.07020.98
5.6.100.0030.05321.02
5.6.90.0030.06721.01
5.6.80.0030.04320.39
5.5.350.0270.08020.48
5.5.340.0070.08017.97
5.5.330.0030.05320.23
5.5.320.0270.04320.51
5.5.310.0170.06720.28
5.5.300.0030.06018.04
5.5.290.0070.07317.98
5.5.280.0100.04720.68
5.5.270.0000.09020.86
5.5.260.0100.04720.74
5.5.250.0170.05320.72
5.5.240.0070.07020.17
5.4.450.0070.06019.59
5.4.440.0870.05719.51
5.4.430.0770.06019.22
5.4.420.0530.06719.39
5.4.410.0100.05318.97
5.4.400.0330.05318.82
5.4.390.0270.06718.79
5.4.380.0070.05318.60
5.4.370.0130.03018.74
5.4.360.0130.05318.55
5.4.350.0060.04512.04
5.4.340.0070.03912.04
5.4.320.0050.04412.52
5.4.310.0120.04112.52
5.4.300.0080.03612.53
5.4.290.0060.03812.52
5.4.280.0090.03212.42
5.4.270.0070.03612.42
5.4.260.0090.03812.42
5.4.250.0080.03512.42
5.4.240.0060.03612.42
5.4.230.0030.04112.41
5.4.220.0070.03512.41
5.4.210.0030.03812.42
5.4.200.0150.02912.41
5.4.190.0080.03312.41
5.4.180.0050.03912.41
5.4.170.0060.04912.42
5.4.160.0050.03712.42
5.4.150.0060.03612.42
5.4.140.0070.03612.10
5.4.130.0080.03812.08
5.4.120.0030.03912.04
5.4.110.0060.03512.04
5.4.100.0090.03212.04
5.4.90.0060.03712.04
5.4.80.0060.03712.04
5.4.70.0070.03412.04
5.4.60.0060.04212.04
5.4.50.0080.03612.04
5.4.40.0080.03312.02
5.4.30.0100.03812.02
5.4.20.0070.03312.02
5.4.10.0050.03412.02
5.4.00.0090.03311.51
5.3.290.0040.04212.80
5.3.280.0040.03912.71
5.3.270.0050.03912.72
5.3.260.0060.04412.72
5.3.250.0050.03812.72
5.3.240.0050.03712.72
5.3.230.0080.03512.71
5.3.220.0080.03312.68
5.3.210.0050.03912.68
5.3.200.0060.03512.68
5.3.190.0070.03512.68
5.3.180.0090.03712.67
5.3.170.0060.03612.67
5.3.160.0100.03812.67
5.3.150.0040.03912.67
5.3.140.0040.03812.66
5.3.130.0070.03812.66
5.3.120.0040.04112.66
5.3.110.0050.04012.66
5.3.100.0040.03812.14
5.3.90.0070.03512.12
5.3.80.0030.03912.12
5.3.70.0060.03712.12
5.3.60.0070.03612.10
5.3.50.0060.03512.05
5.3.40.0060.03512.05
5.3.30.0090.03112.01
5.3.20.0050.03611.79
5.3.10.0050.03511.75
5.3.00.0130.02911.75
5.2.170.0020.0329.18
5.2.160.0030.0309.18
5.2.150.0060.0299.18
5.2.140.0030.0329.18
5.2.130.0050.0339.14
5.2.120.0060.0299.14
5.2.110.0030.0359.14
5.2.100.0060.0339.14
5.2.90.0050.0309.14
5.2.80.0070.0349.14
5.2.70.0020.0339.14
5.2.60.0070.0289.09
5.2.50.0070.0379.06
5.2.40.0040.0299.04
5.2.30.0030.0329.01
5.2.20.0060.0339.00
5.2.10.0060.0298.93
5.2.00.0050.0318.79
5.1.60.0030.0248.06
5.1.50.0030.0258.06
5.1.40.0020.0268.05
5.1.30.0050.0258.40
5.1.20.0040.0268.42
5.1.10.0070.0348.14
5.1.00.0020.0288.14
5.0.50.0030.0216.62
5.0.40.0040.0196.48
5.0.30.0060.0356.29
5.0.20.0020.0216.27
5.0.10.0030.0196.24
5.0.00.0020.0326.23
4.4.90.0010.0174.78
4.4.80.0010.0174.75
4.4.70.0040.0144.76
4.4.60.0030.0144.76
4.4.50.0040.0134.77
4.4.40.0010.0284.71
4.4.30.0010.0204.75
4.4.20.0070.0114.85
4.4.10.0050.0134.85
4.4.00.0050.0224.76
4.3.110.0020.0164.67
4.3.100.0030.0144.67
4.3.90.0020.0154.64
4.3.80.0030.0234.59
4.3.70.0040.0174.63
4.3.60.0020.0154.62
4.3.50.0020.0164.63
4.3.40.0050.0214.54
4.3.30.0040.0143.29
4.3.20.0030.0153.26
4.3.10.0020.0163.22
4.3.00.0030.0207.14

preferences:
51.52 ms | 401 KiB | 5 Q