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); $reflection3 = new \ReflectionFunction(function () {}); 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.0100.01016.49
8.3.50.0110.00822.80
8.3.40.0140.00718.58
8.3.30.0100.00318.96
8.3.20.0080.00020.16
8.3.10.0060.00323.48
8.3.00.0040.00419.25
8.2.180.0110.00416.50
8.2.170.0130.00622.96
8.2.160.0150.00020.52
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0140.00426.16
8.2.120.0000.00721.00
8.2.110.0070.00322.25
8.2.100.0110.00017.91
8.2.90.0000.00819.23
8.2.80.0000.00817.97
8.2.70.0030.00617.38
8.2.60.0030.00518.04
8.2.50.0050.00318.07
8.2.40.0060.00319.95
8.2.30.0000.00818.13
8.2.20.0040.00417.70
8.2.10.0040.00418.19
8.2.00.0080.00017.61
8.1.280.0150.00425.92
8.1.270.0040.00423.83
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.90
8.1.230.0070.00419.10
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0090.00417.23
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0000.00818.69
8.1.160.0040.00422.00
8.1.150.0040.00418.84
8.1.140.0040.00417.37
8.1.130.0040.00417.89
8.1.120.0070.00017.45
8.1.110.0040.00417.32
8.1.100.0000.00717.41
8.1.90.0050.00217.41
8.1.80.0040.00417.49
8.1.70.0020.00617.41
8.1.60.0030.00517.48
8.1.50.0040.00417.57
8.1.40.0040.00417.52
8.1.30.0030.00617.52
8.1.20.0050.00317.53
8.1.10.0040.00417.51
8.1.00.0040.00417.41
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00518.44
8.0.270.0000.00717.17
8.0.260.0030.00317.19
8.0.250.0000.00716.85
8.0.240.0000.00716.89
8.0.230.0030.00316.86
8.0.220.0030.00316.89
8.0.210.0070.00016.81
8.0.200.0030.00316.83
8.0.190.0040.00417.01
8.0.180.0040.00416.91
8.0.170.0050.00216.91
8.0.160.0070.00016.76
8.0.150.0000.00816.77
8.0.140.0040.00416.88
8.0.130.0000.00613.27
8.0.120.0040.00416.87
8.0.110.0030.00516.73
8.0.100.0050.00316.67
8.0.90.0030.00316.95
8.0.80.0090.00616.82
8.0.70.0000.00816.92
8.0.60.0000.00816.75
8.0.50.0040.00416.76
8.0.30.0190.00316.98
8.0.20.0150.00917.40
8.0.10.0040.00416.97
8.0.00.0110.01116.74
7.4.330.0020.00215.00
7.4.320.0000.00716.63
7.4.300.0070.00016.54
7.4.290.0000.00816.50
7.4.280.0040.00416.46
7.4.270.0000.00816.58
7.4.260.0030.00616.56
7.4.250.0000.00716.55
7.4.240.0060.00216.49
7.4.230.0050.00216.34
7.4.220.0050.02016.55
7.4.210.0130.00716.50
7.4.200.0000.00716.57
7.4.160.0080.00816.35
7.4.150.0170.00317.40
7.4.140.0080.01417.86
7.4.130.0040.01216.59
7.4.120.0030.01416.56
7.4.110.0080.00916.43
7.4.100.0110.00816.48
7.4.90.0060.01116.34
7.4.80.0120.00419.39
7.4.70.0120.00916.40
7.4.60.0110.00516.36
7.4.50.0000.00816.41
7.4.40.0070.01016.34
7.4.30.0100.01316.64
7.4.00.0070.00814.89
7.3.330.0030.00313.10
7.3.320.0000.00513.09
7.3.310.0050.00316.07
7.3.300.0030.00316.18
7.3.290.0080.00516.21
7.3.280.0090.00816.27
7.3.270.0200.00017.40
7.3.260.0030.01416.45
7.3.250.0140.00716.20
7.3.240.0130.00616.45
7.3.230.0090.00916.39
7.3.210.0120.00616.39
7.3.200.0110.00719.39
7.3.190.0100.00716.54
7.3.180.0100.01016.27
7.3.170.0080.00816.46
7.3.160.0030.01416.32
7.3.120.0110.00714.65
7.3.110.0030.01314.68
7.3.100.0090.00914.75
7.3.90.0070.01114.72
7.3.80.0000.01614.86
7.3.70.0090.00014.52
7.3.60.0060.00914.54
7.3.50.0030.01014.67
7.3.40.0070.00714.57
7.3.30.0070.01114.73
7.3.20.0060.00616.61
7.3.10.0080.00816.41
7.3.00.0120.00516.21
7.2.330.0100.00716.52
7.2.320.0060.01116.62
7.2.310.0060.00916.55
7.2.300.0080.00916.73
7.2.290.0100.00716.59
7.2.250.0000.01714.78
7.2.240.0060.01214.89
7.2.230.0120.00314.87
7.2.220.0090.00015.14
7.2.210.0040.01215.02
7.2.200.0060.01014.90
7.2.190.0090.00915.07
7.2.180.0100.00315.09
7.2.170.0000.01515.05
7.2.130.0060.00616.11
7.2.120.0070.00316.42
7.2.110.0000.01016.34
7.2.100.0070.00416.16
7.2.90.0090.00916.18
7.2.80.0060.00916.41
7.2.70.0030.00716.20
7.2.60.0120.00416.81
7.2.50.0030.00616.23
7.2.40.0120.00316.26
7.2.30.0110.00716.21
7.2.20.0040.01116.52
7.2.10.0140.00016.59
7.2.00.0060.00718.12
7.1.330.0090.00615.79
7.1.320.0030.00915.82
7.1.310.0040.00715.64
7.1.300.0080.00415.48
7.1.290.0070.00315.77
7.1.280.0070.00715.62
7.1.270.0030.01315.73
7.1.260.0110.00415.74
7.1.250.0030.00715.42
7.1.100.0220.00018.04
7.1.70.0240.00017.16
7.1.60.0120.01219.40
7.1.50.0090.01516.94
7.1.00.0000.08022.34
7.0.200.0030.00616.42
7.0.140.0000.07722.16
7.0.60.0130.07019.94
7.0.50.0200.06717.96
7.0.40.0100.08720.13
7.0.30.0170.04320.13
7.0.20.0300.07320.09
7.0.10.0070.04320.21
7.0.00.0030.06020.08
5.6.280.0030.07321.13
5.6.210.0070.07720.51
5.6.200.0030.09018.19
5.6.190.0130.08320.65
5.6.180.3530.05020.64
5.6.170.0230.08020.52
5.6.160.0030.08020.44
5.6.150.0070.08318.21
5.6.140.0070.06718.27
5.6.130.0030.04718.29
5.6.120.0130.07321.19
5.6.110.0070.06320.99
5.6.100.0070.09021.11
5.6.90.0130.08321.10
5.6.80.0030.04020.49
5.6.70.4400.04020.51
5.5.350.0030.08320.38
5.5.340.0170.07317.96
5.5.330.0170.07020.15
5.5.320.0130.04320.32
5.5.310.0300.07720.27
5.5.300.0000.04017.95
5.5.290.0100.03317.95
5.5.280.0000.04320.69
5.5.270.0030.06720.77
5.5.260.0070.08320.73
5.5.250.0070.03720.66
5.5.240.0030.08020.04
5.4.450.0500.05319.58
5.4.440.0700.05319.48
5.4.430.0830.05019.43
5.4.420.1000.04719.53
5.4.410.0130.06018.96
5.4.400.0370.04718.91
5.4.390.0530.05718.62
5.4.380.0130.04718.86
5.4.370.0030.06018.72
5.4.360.0170.04318.77
5.4.350.0050.03712.02
5.4.340.0040.04412.02
5.4.320.0070.03912.51
5.4.310.0060.04112.50
5.4.300.0080.03412.51
5.4.290.0070.04012.50
5.4.280.0080.05212.40
5.4.270.0070.03912.40
5.4.260.0040.04012.39
5.4.250.0090.04412.40
5.4.240.0070.04612.39
5.4.230.0050.04012.39
5.4.220.0080.04012.39
5.4.210.0060.04312.39
5.4.200.0110.03912.39
5.4.190.0090.03612.39
5.4.180.0070.03612.39
5.4.170.0030.04212.40
5.4.160.0090.04212.39
5.4.150.0070.04312.39
5.4.140.0070.04312.07
5.4.130.0050.03712.06
5.4.120.0050.03612.02
5.4.110.0100.04012.02
5.4.100.0070.03712.02
5.4.90.0070.03612.01
5.4.80.0090.03712.01
5.4.70.0060.03912.02
5.4.60.0080.03812.01
5.4.50.0040.04512.01
5.4.40.0050.04012.00
5.4.30.0070.03712.00
5.4.20.0080.04312.00
5.4.10.0040.03612.00
5.4.00.0040.03711.48
5.3.290.0080.03812.80
5.3.280.0070.03612.71
5.3.270.0100.04112.73
5.3.260.0050.04212.72
5.3.250.0060.04512.72
5.3.240.0030.04312.72
5.3.230.0090.04012.71
5.3.220.0040.03912.68
5.3.210.0070.05312.68
5.3.200.0110.04112.68
5.3.190.0060.03712.67
5.3.180.0080.03512.67
5.3.170.0050.03912.67
5.3.160.0070.03612.68
5.3.150.0060.04012.67
5.3.140.0060.03912.66
5.3.130.0080.04712.66
5.3.120.0060.04912.66
5.3.110.0070.04812.65
5.3.100.0080.03812.14
5.3.90.0090.04212.11
5.3.80.0090.04112.11
5.3.70.0070.04312.11
5.3.60.0100.03412.09
5.3.50.0050.04012.04
5.3.40.0070.04712.04
5.3.30.0110.03212.00
5.3.20.0100.04511.79
5.3.10.0090.04711.75
5.3.00.0120.04911.74
5.2.170.0120.0319.18
5.2.160.0050.0319.18
5.2.150.0070.0309.18
5.2.140.0050.0339.18
5.2.130.0080.0289.14
5.2.120.0040.0299.13
5.2.110.0090.0369.15
5.2.100.0100.0329.14
5.2.90.0080.0329.14
5.2.80.0080.0409.14
5.2.70.0070.0409.14
5.2.60.0050.0409.09
5.2.50.0080.0289.06
5.2.40.0090.0309.03
5.2.30.0060.0319.02
5.2.20.0080.0279.00
5.2.10.0050.0298.93
5.2.00.0070.0398.79
5.1.60.0050.0288.07
5.1.50.0060.0248.06
5.1.40.0060.0248.05
5.1.30.0050.0298.39
5.1.20.0040.0298.41
5.1.10.0060.0258.14
5.1.00.0050.0308.14
5.0.50.0040.0226.62
5.0.40.0030.0216.48
5.0.30.0050.0326.29
5.0.20.0030.0236.27
5.0.10.0000.0246.24
5.0.00.0020.0326.23
4.4.90.0040.0154.78
4.4.80.0040.0184.75
4.4.70.0050.0154.76
4.4.60.0040.0174.76
4.4.50.0020.0164.77
4.4.40.0030.0274.71
4.4.30.0030.0174.76
4.4.20.0070.0144.84
4.4.10.0030.0194.85
4.4.00.0050.0284.76
4.3.110.0050.0164.67
4.3.100.0040.0154.67
4.3.90.0030.0194.64
4.3.80.0040.0244.58
4.3.70.0020.0154.63
4.3.60.0030.0174.63
4.3.50.0030.0174.63
4.3.40.0050.0264.53
4.3.30.0020.0193.29
4.3.20.0040.0173.25
4.3.10.0020.0173.22
4.3.00.0070.0237.06

preferences:
50.3 ms | 401 KiB | 5 Q