3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Wl\A; class B { public function get() { return "BBBBB"; } } $b = new B(); $funct = function (B $b) { print_r($b::get()); }; $closure = &$funct; $reflection = new \ReflectionFunction($closure); $arguments = $reflection->getParameters(); echo "ARGS:\n"; var_dump($arguments); try { $funct(""); } catch (\Exception $e) { echo "catched"; } catch (\TypeError $e) { echo "subidubi"; }

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.0070.00716.38
8.3.50.0100.00316.05
8.3.40.0070.00718.84
8.3.30.0030.01818.67
8.3.20.0080.00020.34
8.3.10.0040.00421.85
8.3.00.0040.00419.80
8.2.180.0110.00416.38
8.2.170.0140.00322.96
8.2.160.0070.00720.28
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0060.00317.75
8.2.110.0090.00022.11
8.2.100.0000.01217.63
8.2.90.0000.00819.17
8.2.80.0050.00317.97
8.2.70.0040.00417.75
8.2.60.0050.00317.80
8.2.50.0040.00818.07
8.2.40.0090.00021.10
8.2.30.0040.00417.95
8.2.20.0040.00417.76
8.2.10.0000.00717.97
8.2.00.0040.00417.95
8.1.280.0040.01125.92
8.1.270.0060.01220.25
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00022.34
8.1.230.0040.00717.42
8.1.220.0060.00317.79
8.1.210.0000.00818.77
8.1.200.0070.00317.35
8.1.190.0040.00417.13
8.1.180.0000.00818.10
8.1.170.0050.00318.66
8.1.160.0040.00422.01
8.1.150.0000.00718.80
8.1.140.0040.00417.31
8.1.130.0030.00617.60
8.1.120.0070.00017.35
8.1.110.0050.00317.33
8.1.100.0040.00417.38
8.1.90.0000.00717.39
8.1.80.0040.00417.48
8.1.70.0000.00717.46
8.1.60.0050.00317.55
8.1.50.0000.00717.50
8.1.40.0000.00817.54
8.1.30.0000.00817.57
8.1.20.0020.00517.62
8.1.10.0000.00817.60
8.1.00.0030.00617.42
8.0.300.0040.00418.77
8.0.290.0030.00616.75
8.0.280.0070.00018.36
8.0.270.0000.00717.28
8.0.260.0080.00017.27
8.0.250.0000.00717.04
8.0.240.0030.00316.98
8.0.230.0000.00716.97
8.0.220.0000.00716.88
8.0.210.0000.00716.80
8.0.200.0030.00317.06
8.0.190.0000.01117.09
8.0.180.0040.00416.92
8.0.170.0000.00916.95
8.0.160.0050.00316.93
8.0.150.0030.00616.79
8.0.140.0040.00416.90
8.0.130.0000.00613.42
8.0.120.0040.00416.93
8.0.110.0060.00316.99
8.0.100.0030.00516.98
8.0.90.0000.00716.85
8.0.80.0080.00816.93
8.0.70.0030.00516.81
8.0.60.0080.00016.85
8.0.50.0040.00416.78
8.0.30.0120.00616.96
8.0.20.0100.00917.40
8.0.10.0000.00817.07
8.0.00.0090.01416.88
7.4.330.0020.00215.09
7.4.320.0030.00316.41
7.4.300.0000.00616.61
7.4.290.0000.00816.61
7.4.280.0030.00616.68
7.4.270.0070.00016.57
7.4.260.0030.00316.52
7.4.250.0040.00416.60
7.4.240.0000.00716.57
7.4.230.0070.00016.63
7.4.220.0070.01016.59
7.4.210.0050.01416.61
7.4.200.0030.00316.70
7.4.160.0030.01316.59
7.4.150.0120.00617.40
7.4.140.0050.01617.86
7.4.130.0120.00916.50
7.4.120.0140.00616.38
7.4.110.0120.00616.68
7.4.100.0060.01216.45
7.4.90.0090.00916.42
7.4.80.0040.01719.39
7.4.70.0080.00916.56
7.4.60.0070.01016.45
7.4.50.0030.00616.30
7.4.40.0030.01216.44
7.4.30.0060.01216.60
7.4.00.0030.01314.97
7.3.330.0000.00613.27
7.3.320.0050.00013.32
7.3.310.0000.00716.16
7.3.300.0030.00316.18
7.3.290.0000.00716.18
7.3.280.0060.01316.28
7.3.270.0200.01317.40
7.3.260.0030.01416.66
7.3.250.0090.01016.38
7.3.240.0120.00616.59
7.3.230.0120.00616.39
7.3.210.0140.00416.46
7.3.200.0000.01716.36
7.3.190.0060.01016.29
7.3.180.0060.01116.25
7.3.170.0120.00416.33
7.3.160.0090.00916.33
7.2.330.0060.01016.81
7.2.320.0130.00916.80
7.2.310.0110.00616.53
7.2.300.0040.01716.78
7.2.290.0160.00716.70
7.2.60.0160.00716.59
7.2.00.0090.00019.39
7.1.200.0030.00615.84
7.1.100.0000.01018.23
7.1.70.0000.00817.14
7.1.60.0060.01220.03
7.1.50.0070.01016.95
7.1.00.0170.06322.40
7.0.200.0320.00614.57
7.0.60.0030.04019.79
7.0.50.0100.03317.87
7.0.40.0000.05020.25
7.0.30.0170.04320.16
7.0.20.0230.05320.22
7.0.10.0130.08320.19
7.0.00.0200.07020.05
5.6.280.0070.06320.89
5.6.210.0070.09020.45
5.6.200.0100.06018.18
5.6.190.0100.07320.33
5.6.180.3330.03720.54
5.6.170.0230.07020.48
5.6.160.0100.08320.46
5.6.150.0030.04018.15
5.6.140.0030.04018.27
5.6.130.0030.09018.25
5.6.120.0100.03321.00
5.6.110.0000.08020.99
5.6.100.0130.06021.11
5.6.90.0100.03720.97
5.6.80.0170.07720.41
5.6.70.4270.03720.39
5.5.350.0200.08020.53
5.5.340.0070.08317.99
5.5.330.0200.07020.42
5.5.320.3200.04020.24
5.5.310.0230.05720.36
5.5.300.0030.06717.94
5.5.290.0000.04318.09
5.5.280.0070.08320.81
5.5.270.0170.07020.76
5.5.260.0100.04020.87
5.5.250.0170.07320.69
5.5.240.0130.03320.04
5.4.450.0230.07019.52
5.4.440.0170.05019.46
5.4.430.0200.08019.20
5.4.420.0130.04719.27
5.4.410.0200.03719.42
5.4.400.0200.04318.95
5.4.390.0200.04019.09
5.4.380.0170.04019.25
5.4.370.0170.03719.08
5.4.360.0170.04319.22
5.4.350.0230.03019.15
5.4.340.0100.04319.09
5.4.320.0300.03319.06
5.4.310.0170.03319.22
5.4.300.0100.04719.01
5.4.290.0100.05019.19
5.4.280.0170.04018.85
5.4.270.0200.03718.85
5.4.260.0130.04019.31
5.4.250.0130.05018.97
5.4.240.0230.04018.98
5.4.230.0130.04319.24
5.4.220.0230.07319.19
5.4.210.0300.06319.07
5.4.200.0270.07018.94
5.4.190.0330.06719.12
5.4.180.0430.06019.21
5.4.170.0270.07319.05
5.4.160.0230.06319.29
5.4.150.0200.07318.85
5.4.140.0270.06316.36
5.4.130.0230.07016.52
5.4.120.0230.07016.35
5.4.110.0270.06316.54
5.4.100.0200.06716.21
5.4.90.0400.04016.56
5.4.80.0230.05016.26

preferences:
40.45 ms | 400 KiB | 5 Q