3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace Foo; class Bar { public static function testClass(): \Closure { return function(){}; } } function testFunc(): \Closure { return function(){}; } var_dump((new \ReflectionFunction(Bar::testClass()))->getNamespaceName()); var_dump((new \ReflectionFunction(testFunc()))->getNamespaceName());

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.5.80.0100.00816.66
8.5.70.0110.00616.70
8.5.60.0080.00916.91
8.5.50.0090.01016.69
8.5.30.0100.00819.58
8.5.20.0100.00720.22
8.5.10.0110.00719.64
8.5.00.0080.01419.90
8.4.230.0150.00719.47
8.4.220.0130.00719.52
8.4.210.0130.00821.37
8.4.180.0120.01019.54
8.4.170.0120.00823.70
8.4.160.0110.01023.71
8.4.150.0050.00316.86
8.4.140.0120.01017.49
8.4.130.0120.00817.79
8.4.120.0120.00720.71
8.4.110.0140.00618.50
8.4.100.0070.00217.88
8.4.90.0150.00717.57
8.4.80.0110.01017.71
8.4.70.0090.01017.67
8.4.60.0130.00817.80
8.4.50.0110.00922.32
8.4.40.0130.00617.68
8.4.30.0130.00924.03
8.4.20.0130.00619.50
8.4.10.0060.00319.36
8.3.320.0120.01120.12
8.3.310.0100.01018.50
8.3.300.0130.00820.92
8.3.290.0120.01020.81
8.3.280.0140.00718.55
8.3.270.0090.01016.38
8.3.260.0050.00316.72
8.3.250.0100.00518.93
8.3.240.0120.00816.44
8.3.230.0100.00916.56
8.3.220.0120.00517.30
8.3.210.0100.00516.63
8.3.200.0130.00916.48
8.3.190.0110.00917.06
8.3.180.0090.00919.13
8.3.170.0100.00717.20
8.3.160.0090.00918.22
8.3.150.0100.01017.38
8.3.140.0040.01516.56
8.3.130.0120.00318.14
8.3.120.0190.00317.14
8.3.110.0200.00317.06
8.3.100.0190.00716.27
8.3.90.0250.00216.30
8.3.80.0230.00316.34
8.3.70.0210.00316.23
8.3.60.0200.00516.32
8.3.50.0180.00516.27
8.3.40.0140.00617.22
8.3.30.0160.00417.17
8.3.20.0140.00717.18
8.3.10.0170.00317.24
8.3.00.0100.00517.83
8.2.310.0140.00517.98
8.2.300.0110.00822.16
8.2.290.0100.00520.39
8.2.280.0090.01016.71
8.2.270.0000.01016.86
8.2.260.0000.00817.04
8.2.250.0060.01216.61
8.2.240.0110.00616.48
8.2.230.0150.00416.28
8.2.220.0160.00416.43
8.2.210.0160.00416.11
8.2.200.0140.00616.31
8.2.190.0150.00516.37
8.2.180.0170.00316.46
8.2.170.0150.00617.54
8.2.160.0180.00417.54
8.2.150.0190.00217.23
8.2.140.0180.00217.21
8.2.130.0150.00617.24
8.2.120.0200.00117.36
8.2.110.0200.00017.30
8.2.100.0150.00517.35
8.2.90.0150.00617.36
8.2.80.0150.00517.28
8.2.70.0180.00517.10
8.2.60.0180.00217.40
8.2.50.0160.00317.38
8.2.40.0120.00717.25
8.2.30.0170.00317.08
8.2.20.0170.00317.10
8.2.10.0170.00617.77
8.2.00.0150.00317.34
8.1.340.0120.00717.60
8.1.330.0110.00716.64
8.1.320.0090.01016.25
8.1.310.0070.00718.11
8.1.300.0070.00516.63
8.1.290.0170.00616.02
8.1.280.0190.00716.06
8.1.270.0250.00217.14
8.1.260.0220.00617.19
8.1.250.0260.00617.07
8.1.240.0200.00517.15
8.1.230.0210.00417.05
8.1.220.0210.00417.18
8.1.210.0220.00317.15
8.1.200.0210.00516.87
8.1.190.0200.00516.90
8.1.180.0170.00716.99
8.1.170.0170.00717.22
8.1.160.0180.00917.03
8.1.150.0200.00417.03
8.1.140.0150.00717.03
8.1.130.0170.00617.15
8.1.120.0170.00617.16
8.1.110.0140.00517.13
8.1.100.0130.00817.64
8.1.90.0110.00817.09
8.1.80.0110.00717.17
8.1.70.0140.00517.20
8.1.60.0210.00417.82
8.1.50.0170.00917.27
8.1.40.0180.00817.38
8.1.30.0250.00317.28
8.1.20.0190.00717.34
8.1.10.0230.00517.18
8.1.00.0230.00417.18

preferences:
36.81 ms | 1019 KiB | 5 Q