3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = function() {}; $rf = new reflectionFunction($f); //var_dump($rf->getClosureThis()); var_dump($rf->getClosureScopeClass()); class foo { public function getNotStaticClosure() { return function() {}; } public static function getStaticClosure() { return function() {}; } } $foo = new foo(); $f = $foo->getNotStaticClosure(); $rf = new reflectionFunction($f); //var_dump($rf->getClosureThis()); var_dump($rf->getClosureScopeClass()); $f = foo::getStaticClosure(); $rf = new reflectionFunction($f); //var_dump($rf->getClosureThis()); var_dump($rf->getClosureScopeClass());

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.0090.00616.88
8.3.50.0110.00822.01
8.3.40.0120.00318.29
8.3.30.0110.00418.89
8.3.20.0040.00420.29
8.3.10.0000.00823.65
8.3.00.0080.00019.18
8.2.180.0110.00418.18
8.2.170.0070.01022.96
8.2.160.0100.00320.35
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0080.00020.84
8.2.110.0060.00322.26
8.2.100.0000.01119.51
8.2.90.0050.00319.08
8.2.80.0080.00017.97
8.2.70.0030.00617.38
8.2.60.0100.00017.80
8.2.50.0060.00318.07
8.2.40.0000.00919.95
8.2.30.0070.00018.27
8.2.20.0040.00417.72
8.2.10.0040.00418.13
8.2.00.0050.00317.66
8.1.280.0080.00825.92
8.1.270.0030.00623.72
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0040.00423.82
8.1.230.0070.00418.96
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0110.00017.36
8.1.190.0040.00417.35
8.1.180.0080.00018.10
8.1.170.0000.01218.51
8.1.160.0000.00822.10
8.1.150.0000.00818.75
8.1.140.0040.00417.57
8.1.130.0000.00717.87
8.1.120.0060.00617.52
8.1.110.0050.00217.48
8.1.100.0040.00417.51
8.1.90.0030.00317.52
8.1.80.0040.00417.39
8.1.70.0040.00417.47
8.1.60.0040.00417.61
8.1.50.0030.00617.52
8.1.40.0070.00017.55
8.1.30.0000.00817.56
8.1.20.0000.00717.63
8.1.10.0040.00417.53
8.1.00.0040.00417.42
8.0.300.0070.00018.77
8.0.290.0000.00817.18
8.0.280.0040.00418.33
8.0.270.0040.00417.26
8.0.260.0030.00317.14
8.0.250.0030.00316.82
8.0.240.0000.00716.95
8.0.230.0070.00016.86
8.0.220.0030.00316.74
8.0.210.0040.00416.90
8.0.200.0040.00416.98
8.0.190.0050.00216.89
8.0.180.0000.00716.80
8.0.170.0050.00317.01
8.0.160.0000.00816.86
8.0.150.0000.00816.86
8.0.140.0040.00416.77
8.0.130.0000.00613.41
8.0.120.0030.00516.78
8.0.110.0000.00716.88
8.0.100.0000.00716.81
8.0.90.0080.00016.98
8.0.80.0070.01016.86
8.0.70.0030.00516.93
8.0.60.0070.00016.81
8.0.50.0000.00716.98
8.0.30.0120.00716.94
8.0.20.0140.00417.40
8.0.10.0080.00017.03
8.0.00.0120.00916.90
7.4.330.0050.00015.00
7.4.320.0060.00016.64
7.4.300.0030.00316.67
7.4.290.0000.00716.65
7.4.280.0000.00816.53
7.4.270.0030.00616.64
7.4.260.0030.00316.61
7.4.250.0000.00716.46
7.4.240.0060.00116.59
7.4.230.0070.00016.71
7.4.220.0090.00916.66
7.4.210.0030.01016.60
7.4.200.0000.00816.73
7.4.190.0030.00316.68
7.4.160.0090.00916.55
7.4.150.0060.01817.40
7.4.140.0020.01417.86
7.4.130.0090.00816.55
7.4.120.0080.01016.48
7.4.110.0070.01716.45
7.4.100.0090.00916.42
7.4.90.0070.01016.32
7.4.80.0130.00919.39
7.4.70.0030.01316.47
7.4.60.0120.00616.49
7.4.50.0000.00916.56
7.4.40.0090.00916.40
7.4.30.0060.01016.54
7.4.00.0050.01114.85
7.3.330.0030.00313.34
7.3.320.0050.00013.17
7.3.310.0000.00716.19
7.3.300.0040.00416.34
7.3.290.0030.01116.28
7.3.280.0110.00916.33
7.3.270.0080.00817.40
7.3.260.0150.00616.36
7.3.250.0090.00816.38
7.3.240.0120.00816.52
7.3.230.0040.01316.39
7.3.210.0070.01016.41
7.3.200.0060.01319.39
7.3.190.0120.00416.30
7.3.180.0060.00916.25
7.3.170.0110.00716.27
7.3.160.0100.00616.67
7.3.120.0030.01314.94
7.3.110.0070.01115.04
7.3.100.0100.00715.03
7.3.90.0100.00614.64
7.3.80.0150.00314.82
7.3.70.0030.00614.76
7.3.60.0070.00714.86
7.3.50.0040.00714.80
7.3.40.0070.00714.56
7.3.30.0030.00614.91
7.3.20.0000.01316.64
7.3.10.0030.01016.69
7.3.00.0080.00816.38
7.2.330.0070.01016.32
7.2.320.0070.01116.70
7.2.310.0110.00716.37
7.2.300.0090.00916.73
7.2.290.0040.01316.71
7.2.250.0110.00815.25
7.2.240.0100.00614.78
7.2.230.0060.00914.89
7.2.220.0100.00714.70
7.2.210.0070.01015.18
7.2.200.0040.00814.99
7.2.190.0000.01414.85
7.2.180.0070.01115.10
7.2.170.0090.00614.84
7.2.130.0080.01117.03
7.2.120.0130.00316.64
7.2.110.0120.00616.86
7.2.100.0060.00916.84
7.2.90.0080.00617.12
7.2.80.0100.00316.92
7.2.70.0060.00616.81
7.2.60.0120.00616.93
7.2.50.0100.00316.73
7.2.40.0070.01017.04
7.2.30.0030.01417.01
7.2.20.0000.01016.80
7.2.10.0030.01216.67
7.2.00.0090.00518.17
7.1.330.0030.00715.66
7.1.320.0070.00715.63
7.1.310.0060.00915.63
7.1.300.0070.00715.70
7.1.290.0030.01315.78
7.1.280.0060.00615.83
7.1.270.0030.00615.64
7.1.260.0080.00415.57
7.1.250.0040.01415.63
7.1.100.0030.01018.27
7.1.70.0000.00817.03
7.1.60.0070.01819.70
7.1.50.0100.00316.92
7.1.00.0000.07722.45
7.0.200.0000.00716.63
7.0.140.0030.07022.09
7.0.60.0100.08319.96
7.0.50.0000.05317.89
7.0.40.0130.06720.09
7.0.30.0170.04720.23
7.0.20.0270.05320.07
7.0.10.0070.08720.21
7.0.00.0130.04720.32
5.6.280.0030.07321.01
5.6.210.0100.08020.71
5.6.200.0070.07718.18
5.6.190.0070.05320.53
5.6.180.0170.08320.61
5.6.170.0270.05720.71
5.6.160.0070.08720.46
5.6.150.0000.04318.24
5.6.140.0000.04718.14
5.6.130.0030.04018.18
5.6.120.0200.06721.03
5.6.110.0170.07021.15
5.6.100.0000.09020.99
5.6.90.0000.04321.05
5.6.80.0070.06020.30
5.6.70.4530.03720.52
5.5.350.0030.08020.43
5.5.340.0200.06017.96
5.5.330.0070.04020.25
5.5.320.0130.04320.52
5.5.310.0330.07320.27
5.5.300.0070.04718.05
5.5.290.0070.04018.08
5.5.280.0200.07720.89
5.5.270.0070.07720.89
5.5.260.0070.08720.82
5.5.250.0030.08720.70
5.5.240.0270.03320.14
5.4.450.0630.05319.57
5.4.440.1000.07319.61
5.4.430.1030.05319.43
5.4.420.1100.06019.60
5.4.410.0700.06019.48
5.4.400.1100.05319.26
5.4.390.1100.05319.37
5.4.380.0170.05318.80
5.4.370.0230.04318.75
5.4.360.0200.05318.57
5.4.350.0170.05718.74
5.4.340.0300.03718.74
5.4.320.0030.04912.52
5.4.310.0070.03712.52
5.4.300.0050.03712.52
5.4.290.0070.04312.51
5.4.280.0110.03412.41
5.4.270.0070.03412.41
5.4.260.0050.04412.41
5.4.250.0050.03812.41
5.4.240.0090.03312.41
5.4.230.0070.03612.40
5.4.220.0070.03512.40
5.4.210.0060.03512.40
5.4.200.0040.03912.40
5.4.190.0060.03612.40
5.4.180.0070.03612.40
5.4.170.0050.03612.41
5.4.160.0060.03512.40
5.4.150.0070.03512.40
5.4.140.0050.03912.08
5.4.130.0070.03412.07
5.4.120.0040.03712.03
5.4.110.0060.04312.02
5.4.100.0080.04212.02
5.4.90.0050.03812.02
5.4.80.0050.05212.02
5.4.70.0060.03412.02
5.4.60.0050.03512.02
5.4.50.0090.04012.02
5.4.40.0030.03712.01
5.4.30.0060.03512.01
5.4.20.0050.03612.01
5.4.10.0100.02912.01
5.4.00.0060.03711.49
5.3.290.0100.05112.80
5.3.280.0050.03912.70
5.3.270.0080.04012.72
5.3.260.0080.05412.72
5.3.250.0090.05012.72
5.3.240.0070.04112.72
5.3.230.0100.05012.71
5.3.220.0070.04712.68
5.3.210.0080.04212.68
5.3.200.0100.04612.68
5.3.190.0140.03612.68
5.3.180.0100.03612.68
5.3.170.0090.03812.67
5.3.160.0070.04012.68
5.3.150.0040.04612.67
5.3.140.0100.05312.66
5.3.130.0090.05812.65
5.3.120.0100.05412.66
5.3.110.0060.04012.66
5.3.100.0040.04412.13
5.3.90.0070.05112.11
5.3.80.0080.04612.11
5.3.70.0100.05312.11
5.3.60.0100.05412.09
5.3.50.0110.04512.04
5.3.40.0100.05412.04
5.3.30.0120.05512.00
5.3.20.0040.03911.79
5.3.10.0060.03511.75
5.3.00.0070.03511.73
5.2.170.0060.0299.18
5.2.160.0050.0289.18
5.2.150.0070.0289.18
5.2.140.0010.0349.18
5.2.130.0050.0279.14
5.2.120.0060.0279.14
5.2.110.0070.0319.15
5.2.100.0040.0309.14
5.2.90.0030.0319.14
5.2.80.0050.0309.14
5.2.70.0040.0339.14
5.2.60.0070.0329.09
5.2.50.0030.0339.06
5.2.40.0060.0299.04
5.2.30.0050.0319.01
5.2.20.0020.0329.00
5.2.10.0050.0298.93
5.2.00.0030.0318.79
5.1.60.0030.0328.07
5.1.50.0030.0268.07
5.1.40.0060.0238.05
5.1.30.0040.0278.40
5.1.20.0040.0278.42
5.1.10.0060.0278.14
5.1.00.0040.0328.14
5.0.50.0060.0186.62
5.0.40.0060.0166.48
5.0.30.0030.0326.29
5.0.20.0020.0216.26
5.0.10.0050.0186.24
5.0.00.0040.0296.24
4.4.90.0040.0144.78
4.4.80.0040.0144.75
4.4.70.0050.0144.75
4.4.60.0030.0164.75
4.4.50.0060.0174.77
4.4.40.0030.0244.71
4.4.30.0030.0154.76
4.4.20.0050.0134.85
4.4.10.0050.0134.85
4.4.00.0030.0244.76
4.3.110.0030.0154.67
4.3.100.0050.0134.67
4.3.90.0010.0204.63
4.3.80.0030.0244.58
4.3.70.0050.0124.63
4.3.60.0030.0154.63
4.3.50.0060.0134.62
4.3.40.0050.0224.54
4.3.30.0000.0183.28
4.3.20.0010.0163.26
4.3.10.0020.0163.22
4.3.00.0030.01716.92

preferences:
43.66 ms | 400 KiB | 5 Q