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); $reflection3 = new \ReflectionFunction($closure); var_dump($closure, $reflection, $reflection2, $reflection3);

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.0040.01116.62
8.3.50.0090.01122.87
8.3.40.0040.01518.79
8.3.30.0100.00319.15
8.3.20.0080.00020.21
8.3.10.0040.00423.53
8.3.00.0060.00319.25
8.2.180.0120.00616.75
8.2.170.0080.00822.96
8.2.160.0080.00820.17
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0130.00626.16
8.2.120.0020.00520.90
8.2.110.0030.00622.25
8.2.100.0000.01117.84
8.2.90.0000.00919.09
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0040.00417.80
8.2.50.0060.00318.07
8.2.40.0080.00019.95
8.2.30.0040.00418.11
8.2.20.0000.00817.70
8.2.10.0030.00517.95
8.2.00.0040.00417.70
8.1.280.0070.00725.92
8.1.270.0000.00923.77
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00323.82
8.1.230.0040.00819.06
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0080.00517.10
8.1.190.0050.00317.00
8.1.180.0030.00518.10
8.1.170.0000.00818.46
8.1.160.0050.00322.01
8.1.150.0040.00418.82
8.1.140.0070.00017.31
8.1.130.0000.00817.74
8.1.120.0070.00017.44
8.1.110.0040.00417.29
8.1.100.0070.00017.29
8.1.90.0000.00817.36
8.1.80.0040.00417.23
8.1.70.0030.00617.38
8.1.60.0000.00817.49
8.1.50.0080.00017.51
8.1.40.0000.00917.45
8.1.30.0040.00417.50
8.1.20.0040.00417.56
8.1.10.0000.00717.52
8.1.00.0000.00817.49
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.44
8.0.270.0070.00017.17
8.0.260.0030.00317.05
8.0.250.0000.00716.90
8.0.240.0000.00816.98
8.0.230.0000.00716.91
8.0.220.0030.00316.89
8.0.210.0030.00316.90
8.0.200.0030.00316.91
8.0.190.0030.00316.96
8.0.180.0020.00516.93
8.0.170.0000.00716.98
8.0.160.0000.00716.89
8.0.150.0040.00416.85
8.0.140.0000.00816.86
8.0.130.0000.00613.39
8.0.120.0030.00516.88
8.0.110.0070.00016.72
8.0.100.0050.00316.88
8.0.90.0000.00716.92
8.0.80.0060.00916.89
8.0.70.0000.00716.90
8.0.60.0040.00416.71
8.0.50.0040.00416.91
8.0.30.0100.01016.96
8.0.20.0140.00917.40
8.0.10.0000.00816.90
8.0.00.0090.00816.71
7.4.330.0060.00015.06
7.4.320.0030.00316.55
7.4.300.0070.00016.44
7.4.290.0030.00316.46
7.4.280.0070.00016.44
7.4.270.0040.00416.55
7.4.260.0050.00316.54
7.4.250.0070.00016.37
7.4.240.0030.00316.44
7.4.230.0000.00716.36
7.4.220.0070.01016.52
7.4.210.0070.00716.32
7.4.200.0040.00416.43
7.4.160.0100.00616.49
7.4.150.0160.01017.40
7.4.140.0120.00817.86
7.4.130.0080.01116.54
7.4.120.0130.00616.51
7.4.110.0140.00316.52
7.4.100.0070.01016.45
7.4.90.0110.00616.32
7.4.80.0110.00419.39
7.4.70.0080.01116.49
7.4.60.0100.01016.55
7.4.50.0030.00516.24
7.4.40.0170.00616.42
7.4.30.0090.00616.54
7.4.00.0110.00415.12
7.3.330.0020.00213.24
7.3.320.0020.00213.10
7.3.310.0040.00316.27
7.3.300.0030.00316.23
7.3.290.0060.00916.37
7.3.280.0090.00816.22
7.3.270.0120.00917.40
7.3.260.0070.01716.27
7.3.250.0080.00916.37
7.3.240.0100.01316.41
7.3.230.0040.01216.39
7.3.210.0150.01216.25
7.3.200.0070.01319.39
7.3.190.0070.01116.49
7.3.180.0120.00916.16
7.3.170.0060.00916.27
7.3.160.0060.00916.41
7.2.330.0090.00916.58
7.2.320.0130.01016.46
7.2.310.0110.00516.73
7.2.300.0100.00716.57
7.2.290.0120.00416.30
7.2.00.0090.00619.24
7.1.200.0070.00415.60
7.1.100.0240.00317.79
7.1.70.0000.00717.03
7.1.60.0070.01719.40
7.1.50.0030.01016.76
7.1.00.0070.07322.24
7.0.200.0000.00816.66
7.0.140.0100.06322.00
7.0.60.0100.04020.07
7.0.50.0130.05717.88
7.0.40.0100.05020.26
7.0.30.0170.04020.23
7.0.20.0200.04020.09
7.0.10.0230.07720.33
7.0.00.0200.07320.09
5.6.280.0100.07020.86
5.6.210.0070.04720.51
5.6.200.0070.08018.20
5.6.190.0070.04320.64
5.6.180.0370.04320.43
5.6.170.0230.07320.45
5.6.160.0130.07320.47
5.6.150.0130.07018.18
5.6.140.0100.07318.23
5.6.130.0100.08018.12
5.6.120.0030.06321.14
5.6.110.0070.04020.98
5.6.100.0030.08021.14
5.6.90.0200.07021.00
5.6.80.0070.08020.51
5.5.350.0270.08720.41
5.5.340.0030.04317.98
5.5.330.0030.05320.36
5.5.320.0230.08020.31
5.5.310.0230.07720.36
5.5.300.0000.08717.95
5.5.290.0100.08017.99
5.5.280.0100.04020.98
5.5.270.0030.04320.81
5.5.260.0200.03720.79
5.5.250.0030.04020.62
5.5.240.0070.07020.37
5.4.450.0870.05319.48
5.4.440.0400.07319.58
5.4.430.0130.05019.62
5.4.420.0700.05319.55
5.4.410.0270.05019.01
5.4.400.2730.05718.81
5.4.390.1930.06018.58
5.4.380.0100.05018.74
5.4.370.0100.03318.72
5.4.360.0130.05018.57
5.4.350.0060.03912.02
5.4.340.0080.03712.02
5.4.320.0080.03312.50
5.4.310.0050.03812.50
5.4.300.0040.04212.50
5.4.290.0070.04212.50
5.4.280.0080.03612.39
5.4.270.0090.03512.39
5.4.260.0050.03912.39
5.4.250.0040.04812.39
5.4.240.0050.03612.39
5.4.230.0080.04212.39
5.4.220.0030.03812.39
5.4.210.0080.03212.38
5.4.200.0090.03812.39
5.4.190.0090.03412.38
5.4.180.0070.03412.39
5.4.170.0060.03612.40
5.4.160.0080.03412.39
5.4.150.0060.03912.39
5.4.140.0030.03912.07
5.4.130.0100.03312.05
5.4.120.0080.03612.02
5.4.110.0060.03812.01
5.4.100.0060.04012.01
5.4.90.0090.03712.01
5.4.80.0050.03712.02
5.4.70.0040.04012.00
5.4.60.0070.03312.01
5.4.50.0080.03212.01
5.4.40.0060.03312.00
5.4.30.0040.03711.99
5.4.20.0060.03711.99
5.4.10.0060.03312.00
5.4.00.0050.03611.48
5.3.290.0070.03712.80
5.3.280.0100.03412.71
5.3.270.0080.04112.72
5.3.260.0080.03712.72
5.3.250.0010.04212.72
5.3.240.0070.04412.72
5.3.230.0060.03712.71
5.3.220.0100.03512.68
5.3.210.0090.04412.68
5.3.200.0070.03912.68
5.3.190.0060.03712.68
5.3.180.0090.03512.67
5.3.170.0050.03712.67
5.3.160.0060.03612.67
5.3.150.0060.03612.67
5.3.140.0070.03512.66
5.3.130.0030.04112.66
5.3.120.0080.04312.66
5.3.110.0070.04112.66
5.3.100.0060.03612.13
5.3.90.0120.03012.11
5.3.80.0070.03512.11
5.3.70.0030.03912.11
5.3.60.0070.03512.09
5.3.50.0100.04112.04
5.3.40.0070.04412.04
5.3.30.0070.03412.00
5.3.20.0080.03411.77
5.3.10.0040.03611.74
5.3.00.0070.03411.73
5.2.170.0040.0309.18
5.2.160.0090.0249.18
5.2.150.0030.0329.18
5.2.140.0050.0299.18
5.2.130.0040.0299.14
5.2.120.0060.0279.14
5.2.110.0100.0239.14
5.2.100.0060.0269.14
5.2.90.0070.0269.14
5.2.80.0050.0309.14
5.2.70.0050.0309.14
5.2.60.0050.0299.09
5.2.50.0050.0299.06
5.2.40.0030.0309.03
5.2.30.0080.0269.02
5.2.20.0030.0299.00
5.2.10.0060.0268.93
5.2.00.0060.0278.78
5.1.60.0070.0288.06
5.1.50.0050.0238.06
5.1.40.0030.0258.05
5.1.30.0030.0278.40
5.1.20.0040.0278.42
5.1.10.0060.0248.14
5.1.00.0050.0248.14
5.0.50.0030.0216.62
5.0.40.0060.0166.48
5.0.30.0010.0336.29
5.0.20.0020.0236.26
5.0.10.0020.0226.24
5.0.00.0030.0316.23
4.4.90.0050.0164.78
4.4.80.0060.0174.75
4.4.70.0050.0194.75
4.4.60.0030.0164.76
4.4.50.0030.0144.77
4.4.40.0010.0264.71
4.4.30.0030.0144.76
4.4.20.0040.0134.84
4.4.10.0020.0164.85
4.4.00.0020.0254.76
4.3.110.0010.0174.67
4.3.100.0020.0154.66
4.3.90.0030.0144.63
4.3.80.0020.0254.59
4.3.70.0050.0124.63
4.3.60.0010.0164.62
4.3.50.0030.0164.63
4.3.40.0030.0244.54
4.3.30.0020.0173.29
4.3.20.0020.0173.26
4.3.10.0020.0163.22
4.3.00.0170.0177.13

preferences:
35.11 ms | 401 KiB | 5 Q