3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { function f() { $cl = function($p) {}; $rf = new ReflectionFunction($cl); $rps = $rf->getParams(); $rp = $rfs[0]; return $rp->getDeclaringFunction(); } } $c = new C; $r = $c->f(); var_dump($r->isClosure()); var_dump($r->getClosureScopeClass()->getName());

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.00718.43
8.3.50.0140.00722.04
8.3.40.0120.00318.71
8.3.30.0070.00719.09
8.3.20.0040.00420.16
8.3.10.0050.00320.46
8.3.00.0030.00519.51
8.2.180.0190.01616.75
8.2.170.0140.00722.96
8.2.160.0100.00320.39
8.2.150.0070.00024.18
8.2.140.0050.00524.66
8.2.130.0040.00426.16
8.2.120.0000.00820.96
8.2.110.0070.00319.76
8.2.100.0110.00017.91
8.2.90.0050.00318.22
8.2.80.0030.00517.97
8.2.70.0040.00418.04
8.2.60.0030.00618.22
8.2.50.0040.00418.10
8.2.40.0040.00420.63
8.2.30.0040.00419.45
8.2.20.0000.00817.74
8.2.10.0040.00417.95
8.2.00.0040.00417.66
8.1.280.0090.00625.92
8.1.270.0000.00823.96
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00322.05
8.1.230.0000.01218.97
8.1.220.0030.00717.74
8.1.210.0040.00418.77
8.1.200.0100.00017.25
8.1.190.0060.00317.23
8.1.180.0000.00818.10
8.1.170.0040.00418.49
8.1.160.0070.00022.11
8.1.150.0040.00418.94
8.1.140.0040.00417.38
8.1.130.0000.00717.75
8.1.120.0000.00717.48
8.1.110.0080.00017.45
8.1.100.0000.00717.47
8.1.90.0000.00817.46
8.1.80.0040.00417.48
8.1.70.0030.00317.33
8.1.60.0030.00617.58
8.1.50.0040.00417.51
8.1.40.0000.00817.57
8.1.30.0030.00617.65
8.1.20.0000.00817.59
8.1.10.0040.00417.55
8.1.00.0000.00717.50
8.0.300.0050.00219.73
8.0.290.0030.00516.63
8.0.280.0000.00718.38
8.0.270.0030.00317.15
8.0.260.0060.00017.12
8.0.250.0020.00516.92
8.0.240.0000.00717.03
8.0.230.0040.00417.02
8.0.220.0080.00016.93
8.0.210.0030.00316.78
8.0.200.0000.00717.05
8.0.190.0100.00216.88
8.0.180.0000.00716.84
8.0.170.0030.00516.93
8.0.160.0000.00716.81
8.0.150.0000.00816.88
8.0.140.0080.00016.89
8.0.130.0000.00613.41
8.0.120.0080.00016.94
8.0.110.0050.00316.95
8.0.100.0000.00716.83
8.0.90.0040.00416.98
8.0.80.0100.00717.02
8.0.70.0000.00816.91
8.0.60.0020.00617.02
8.0.50.0070.00016.99
8.0.30.0050.01817.05
8.0.20.0080.01117.40
8.0.10.0070.00016.92
8.0.00.0080.01016.88
7.4.330.0000.00515.00
7.4.320.0060.00016.52
7.4.300.0070.00016.50
7.4.290.0000.00816.58
7.4.280.0000.00716.59
7.4.270.0060.00016.46
7.4.260.0000.00816.61
7.4.250.0040.00416.43
7.4.240.0040.00316.50
7.4.230.0070.00016.36
7.4.220.0090.00916.65
7.4.210.0140.00016.47
7.4.200.0050.00316.48
7.4.160.0100.00716.41
7.4.150.0070.01017.40
7.4.140.0070.01417.86
7.4.130.0040.01716.66
7.4.120.0100.00616.56
7.4.110.0070.01016.42
7.4.100.0070.01716.70
7.4.90.0120.00616.36
7.4.80.0060.01119.39
7.4.70.0120.01216.54
7.4.60.0070.01016.61
7.4.50.0000.00816.48
7.4.40.0120.00816.60
7.4.30.0110.00716.48
7.4.00.0070.00714.73
7.3.330.0050.00013.38
7.3.320.0000.00513.24
7.3.310.0060.00316.18
7.3.300.0000.00716.25
7.3.290.0030.01016.39
7.3.280.0060.01116.33
7.3.270.0180.00017.40
7.3.260.0140.00316.60
7.3.250.0120.00816.59
7.3.240.0170.00616.34
7.3.230.0140.00416.39
7.3.210.0080.00816.37
7.3.200.0160.00519.39
7.3.190.0100.00716.39
7.3.180.0090.00616.60
7.3.170.0100.00716.52
7.3.160.0070.01316.45
7.3.10.0100.00316.34
7.3.00.0040.00816.31
7.2.330.0130.00316.54
7.2.320.0040.01516.59
7.2.310.0150.00316.67
7.2.300.0100.00716.73
7.2.290.0170.00716.71
7.2.130.0070.00716.82
7.2.120.0030.01016.69
7.2.110.0060.00816.56
7.2.100.0110.00716.61
7.2.90.0070.01116.86
7.2.80.0060.00916.88
7.2.70.0000.01716.78
7.2.60.0050.00616.95
7.2.50.0080.00317.00
7.2.40.0030.00716.89
7.2.30.0090.00316.91
7.2.20.0100.00316.64
7.2.10.0070.00716.71
7.2.00.0000.01318.17
7.1.250.0030.01015.54
7.1.200.0070.00615.51
7.1.70.0000.00917.19
7.1.60.0070.00417.23
7.1.50.0100.01016.90
7.1.00.0100.06722.35
7.0.200.0090.00316.77
7.0.140.0070.06722.04
7.0.60.0000.08319.86
7.0.50.0030.08317.91
7.0.40.0030.06320.24
7.0.30.0230.08020.26
7.0.20.0270.06020.12
7.0.10.0070.08020.22
7.0.00.0070.06320.32
5.6.280.0000.07721.11
5.6.210.0030.04020.62
5.6.200.0100.07318.29
5.6.190.0070.05020.46
5.6.180.0370.04720.49
5.6.170.0200.04020.51
5.6.160.0030.06020.54
5.6.150.0070.08318.23
5.6.140.0070.07318.13
5.6.130.0030.06318.14
5.6.120.0030.08721.14
5.6.110.0100.08021.00
5.6.100.0200.06720.92
5.6.90.0000.04721.01
5.6.80.0000.04320.54
5.5.350.4400.03020.33
5.5.340.0070.04717.96
5.5.330.0000.04320.21
5.5.320.0000.04720.31
5.5.310.0230.04320.35
5.5.300.0170.05718.09
5.5.290.0100.07717.92
5.5.280.0030.08720.88
5.5.270.0030.08320.80
5.5.260.0070.08320.73
5.5.250.0200.06320.69
5.5.240.0170.05720.32
5.4.450.0100.04719.18
5.4.440.0170.05019.32
5.4.430.0130.04319.56
5.4.420.0170.04319.30
5.4.410.0230.06719.04
5.4.400.0200.07318.88
5.4.390.0230.06319.09
5.4.380.0230.07318.91
5.4.370.0200.04718.89
5.4.360.0170.07719.09
5.4.350.0230.04319.24
5.4.340.0200.04718.98
5.4.320.0270.04719.09
5.4.310.0100.07319.09
5.4.300.0170.04019.34
5.4.290.0270.03019.13
5.4.280.0330.06319.15
5.4.270.0170.04719.08
5.4.260.0200.05319.22
5.4.250.0300.06319.23
5.4.240.0270.03719.08
5.4.230.0170.04018.84
5.4.220.0270.04319.23
5.4.210.0170.07319.23
5.4.200.0200.04719.04
5.4.190.0200.04318.99
5.4.180.0100.05019.13
5.4.170.0130.04018.97
5.4.160.0170.03718.93
5.4.150.0170.04319.09
5.4.140.0170.04016.44
5.4.130.0130.04716.37
5.4.120.0200.05316.47
5.4.110.0170.05716.61
5.4.100.0200.07016.61
5.4.90.0270.04016.32
5.4.80.0270.03316.59
5.4.70.0300.06316.44
5.4.60.0300.04716.16
5.4.50.0330.05316.54
5.4.40.0270.06716.25
5.4.30.0130.04716.48
5.4.20.0230.07016.50
5.4.10.0200.07316.42
5.4.00.0100.05315.80
5.3.290.0170.06314.68
5.3.280.0370.05714.53
5.3.270.0100.04014.62
5.3.260.0100.04314.77
5.3.250.0130.03714.66
5.3.240.0200.06714.68
5.3.230.0170.04714.68
5.3.220.0230.03714.50
5.3.210.0200.03714.55
5.3.200.0070.05314.55
5.3.190.0200.04714.57
5.3.180.0230.03714.50
5.3.170.0230.07014.55
5.3.160.0200.04714.47
5.3.150.0270.03314.54
5.3.140.0200.07714.79
5.3.130.0230.06314.45
5.3.120.0130.07714.60
5.3.110.0200.06714.57
5.3.100.0270.05314.13
5.3.90.0200.04713.92
5.3.80.0170.07014.14
5.3.70.0200.03713.94
5.3.60.0170.06713.93
5.3.50.0300.05014.04
5.3.40.0170.05313.88
5.3.30.0130.04014.00
5.3.20.0130.03713.71
5.3.10.0130.06013.70
5.3.00.0170.06013.55
5.2.170.0170.03011.26
5.2.160.0170.02711.15
5.2.150.0170.02711.07
5.2.140.0170.02711.11
5.2.130.0200.05711.10
5.2.120.0200.05011.18
5.2.110.0130.05011.22
5.2.100.0100.03311.15
5.2.90.0200.05311.01
5.2.80.0130.03711.01
5.2.70.0070.03311.00
5.2.60.0130.03311.11
5.2.50.0270.04711.24
5.2.40.0130.06311.11
5.2.30.0170.03010.97
5.2.20.0170.05010.94
5.2.10.0130.02710.87
5.2.00.0170.02310.61
5.1.60.0030.03310.08
5.1.50.0130.02310.23
5.1.40.0130.0509.86
5.1.30.0100.02710.39
5.1.20.0100.02710.35
5.1.10.0170.05310.22
5.1.00.0130.03010.31
5.0.50.0030.0238.53
5.0.40.0030.0278.49
5.0.30.0070.0508.30
5.0.20.0100.0208.14
5.0.10.0070.0208.07
5.0.00.0030.0678.29
4.4.90.0100.0337.65
4.4.80.0100.0337.65
4.4.70.0030.0177.65
4.4.60.0070.0177.65
4.4.50.0030.0207.65
4.4.40.0030.0307.65
4.4.30.0030.0177.65
4.4.20.0030.0177.65
4.4.10.0030.0207.65
4.4.00.0070.0307.65
4.3.110.0130.0107.65
4.3.100.0070.0177.65
4.3.90.0070.0207.65
4.3.80.0100.0507.65
4.3.70.0100.0177.65
4.3.60.0030.0377.65
4.3.50.0100.0307.65
4.3.40.0200.0437.65
4.3.30.0070.0207.65
4.3.20.0000.0207.65
4.3.10.0000.0177.65
4.3.00.0030.0177.65

preferences:
52.05 ms | 401 KiB | 5 Q