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); var_dump($closure, $reflection, $reflection2->export($reflection2));

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.0220.00316.50
8.3.50.0120.00722.94
8.3.40.0090.00619.02
8.3.30.0030.01019.10
8.3.20.0000.00820.18
8.3.10.0050.00323.48
8.3.00.0040.00419.51
8.2.180.0060.01316.50
8.2.170.0060.00922.96
8.2.160.0140.00020.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0130.00026.16
8.2.120.0000.00820.85
8.2.110.0030.00619.28
8.2.100.0060.00617.72
8.2.90.0040.00419.76
8.2.80.0000.00918.16
8.2.70.0000.00817.68
8.2.60.0000.00817.77
8.2.50.0080.00018.10
8.2.40.0000.00720.39
8.2.30.0040.00417.92
8.2.20.0000.00817.67
8.2.10.0040.00417.88
8.2.00.0040.00417.74
8.1.280.0090.01225.92
8.1.270.0040.00423.98
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0050.00522.52
8.1.230.0080.00422.64
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0090.00017.23
8.1.190.0090.00017.25
8.1.180.0040.00418.10
8.1.170.0090.00018.46
8.1.160.0000.00722.21
8.1.150.0060.00318.85
8.1.140.0070.00017.35
8.1.130.0050.00217.88
8.1.120.0000.00717.29
8.1.110.0040.00417.28
8.1.100.0020.00517.31
8.1.90.0030.00317.37
8.1.80.0070.00017.30
8.1.70.0090.00017.30
8.1.60.0050.00317.45
8.1.50.0000.00917.46
8.1.40.0030.00517.45
8.1.30.0040.00417.56
8.1.20.0050.00217.59
8.1.10.0030.00617.51
8.1.00.0070.00017.43
8.0.300.0000.00720.20
8.0.290.0040.00416.75
8.0.280.0000.00718.33
8.0.270.0070.00017.08
8.0.260.0000.00717.20
8.0.250.0030.00317.02
8.0.240.0030.00317.01
8.0.230.0000.00716.80
8.0.220.0070.00016.76
8.0.210.0000.00616.82
8.0.200.0000.00616.96
8.0.190.0000.00816.97
8.0.180.0040.00416.82
8.0.170.0000.00816.95
8.0.160.0000.00816.85
8.0.150.0040.00416.75
8.0.140.0040.00416.87
8.0.130.0070.00313.34
8.0.120.0050.00316.88
8.0.110.0050.00216.86
8.0.100.0060.00316.72
8.0.90.0070.00016.90
8.0.80.0040.01716.83
8.0.70.0040.00416.80
8.0.60.0040.00416.91
8.0.50.0050.00316.68
8.0.30.0120.00817.14
8.0.20.0070.01517.40
8.0.10.0000.00916.99
8.0.00.0080.00916.46
7.4.330.0000.00515.00
7.4.320.0000.00616.43
7.4.300.0000.00716.44
7.4.290.0030.00316.54
7.4.280.0030.00316.63
7.4.270.0040.00416.61
7.4.260.0040.00416.62
7.4.250.0000.00716.39
7.4.240.0000.00716.53
7.4.230.0040.00416.48
7.4.220.0060.01516.68
7.4.210.0070.01316.56
7.4.200.0040.00416.71
7.4.160.0160.00316.48
7.4.150.0140.01017.40
7.4.140.0060.01217.86
7.4.130.0120.00516.55
7.4.120.0100.00716.52
7.4.110.0040.01316.61
7.4.100.0090.00916.56
7.4.90.0140.00316.56
7.4.80.0150.00619.39
7.4.70.0150.00916.55
7.4.60.0030.01416.62
7.4.50.0000.00816.56
7.4.40.0160.00016.54
7.4.30.0090.01216.36
7.4.00.0120.00415.06
7.3.330.0000.00513.30
7.3.320.0000.00513.11
7.3.310.0000.00716.41
7.3.300.0000.00716.19
7.3.290.0060.00816.31
7.3.280.0110.00616.32
7.3.270.0190.00517.40
7.3.260.0090.00916.55
7.3.250.0130.01116.37
7.3.240.0030.01616.22
7.3.230.0130.00316.47
7.3.210.0130.00316.53
7.3.200.0030.01319.39
7.3.190.0130.01016.21
7.3.180.0120.00816.30
7.3.170.0040.01116.30
7.3.160.0090.00616.29
7.2.330.0090.01116.62
7.2.320.0140.00316.59
7.2.310.0070.01016.62
7.2.300.0070.01016.66
7.2.290.0100.00616.66
7.2.60.0000.01516.99
7.1.200.0030.00815.54
7.1.70.0040.00416.93
7.1.60.0100.01019.40
7.1.50.0070.01416.99
7.1.00.0100.07022.28
7.0.200.0030.00616.70
7.0.140.0070.07022.00
7.0.60.0070.09019.96
7.0.50.0070.08317.88
7.0.40.0100.05020.13
7.0.30.0300.06020.21
7.0.20.0300.08020.22
7.0.10.0030.09320.17
7.0.00.0070.08320.20
5.6.280.0100.06721.09
5.6.210.0030.07720.51
5.6.200.0000.04318.27
5.6.190.0130.07320.48
5.6.180.3200.04020.61
5.6.170.0300.05720.53
5.6.160.0000.04720.76
5.6.150.0070.07718.16
5.6.140.0130.04318.17
5.6.130.0130.04718.16
5.6.120.0100.04020.99
5.6.110.0300.07020.98
5.6.100.0070.08321.09
5.6.90.0130.08720.97
5.6.80.0030.04020.29
5.6.70.4300.04720.49
5.5.350.0100.07320.34
5.5.340.0030.08717.99
5.5.330.0030.04020.21
5.5.320.0270.07020.26
5.5.310.0200.03720.41
5.5.300.0070.04317.98
5.5.290.0030.04717.92
5.5.280.0030.05020.98
5.5.270.0070.04020.84
5.5.260.0070.04020.87
5.5.250.0100.05020.61
5.5.240.0270.06020.16
5.4.450.0500.05019.39
5.4.440.0230.05319.38
5.4.430.0170.05319.54
5.4.420.0030.07019.52
5.4.410.0100.05719.09
5.4.400.0130.05719.24
5.4.390.0100.05319.04
5.4.380.0030.05718.47
5.4.370.0100.04718.52
5.4.360.0070.04718.73
5.4.350.0230.09012.03
5.4.340.0040.03812.02
5.4.320.0030.03912.50
5.4.310.0040.04012.50
5.4.300.0080.03412.50
5.4.290.0060.03812.50
5.4.280.0060.03512.40
5.4.270.0060.03612.39
5.4.260.0070.03712.39
5.4.250.0080.04112.40
5.4.240.0070.03512.40
5.4.230.0080.03512.39
5.4.220.0040.03812.39
5.4.210.0040.03712.39
5.4.200.0050.04512.39
5.4.190.0070.04112.38
5.4.180.0060.03612.38
5.4.170.0060.03912.40
5.4.160.0070.03412.39
5.4.150.0040.03812.39
5.4.140.0050.03712.08
5.4.130.0050.03512.07
5.4.120.0030.03612.02
5.4.110.0080.03712.02
5.4.100.0070.03712.02
5.4.90.0080.03512.02
5.4.80.0060.03612.02
5.4.70.0060.03412.01
5.4.60.0080.03412.02
5.4.50.0060.04712.02
5.4.40.0030.03812.00
5.4.30.0060.04112.00
5.4.20.0050.03812.00
5.4.10.0050.04512.00
5.4.00.0040.03611.49
5.3.290.0050.04012.80
5.3.280.0070.03712.71
5.3.270.0080.03612.73
5.3.260.0070.04712.72
5.3.250.0070.03512.72
5.3.240.0060.03612.72
5.3.230.0130.03212.70
5.3.220.0050.03712.68
5.3.210.0070.03912.68
5.3.200.0050.03712.68
5.3.190.0070.03612.68
5.3.180.0050.03712.67
5.3.170.0040.03812.67
5.3.160.0040.03812.68
5.3.150.0050.03712.67
5.3.140.0040.04012.66
5.3.130.0050.03912.66
5.3.120.0110.03412.66
5.3.110.0040.04012.66
5.3.100.0050.03712.14
5.3.90.0100.03212.11
5.3.80.0060.03712.11
5.3.70.0080.03312.11
5.3.60.0070.03612.09
5.3.50.0080.03412.04
5.3.40.0080.03312.04
5.3.30.0070.03312.00
5.3.20.0040.03611.78
5.3.10.0100.03011.74
5.3.00.0050.03711.73
5.2.170.0050.0299.18
5.2.160.0040.0299.18
5.2.150.0020.0329.18
5.2.140.0000.0349.18
5.2.130.0020.0319.14
5.2.120.0030.0319.14
5.2.110.0050.0299.14
5.2.100.0050.0289.14
5.2.90.0060.0279.14
5.2.80.0070.0279.14
5.2.70.0050.0299.14
5.2.60.0070.0279.09
5.2.50.0100.0249.06
5.2.40.0060.0279.03
5.2.30.0040.0319.01
5.2.20.0080.0289.00
5.2.10.0060.0268.93
5.2.00.0040.0298.79
5.1.60.0010.0278.07
5.1.50.0050.0238.07
5.1.40.0000.0288.05
5.1.30.0040.0258.40
5.1.20.0040.0258.42
5.1.10.0030.0268.14
5.1.00.0050.0248.14
5.0.50.0050.0196.62
5.0.40.0040.0186.47
5.0.30.0030.0316.29
5.0.20.0040.0186.26
5.0.10.0030.0206.24
5.0.00.0050.0286.23
4.4.90.0030.0154.78
4.4.80.0030.0154.75
4.4.70.0040.0144.75
4.4.60.0020.0154.75
4.4.50.0030.0154.77
4.4.40.0030.0244.71
4.4.30.0020.0154.76
4.4.20.0020.0164.84
4.4.10.0030.0154.85
4.4.00.0030.0244.76
4.3.110.0020.0164.67
4.3.100.0020.0154.66
4.3.90.0030.0134.63
4.3.80.0050.0214.58
4.3.70.0050.0124.63
4.3.60.0060.0134.62
4.3.50.0020.0204.63
4.3.40.0030.0294.54
4.3.30.0030.0153.28
4.3.20.0050.0133.26
4.3.10.0030.0153.22
4.3.00.0170.0207.14

preferences:
41.69 ms | 401 KiB | 5 Q