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); exit; try { $a->b(""); } 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.0150.00016.75
8.3.50.0120.00620.97
8.3.40.0110.00418.54
8.3.30.0100.00718.84
8.3.20.0020.00520.19
8.3.10.0050.00321.73
8.3.00.0000.00819.56
8.2.180.0070.01416.75
8.2.170.0130.00322.96
8.2.160.0070.00720.57
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0070.00426.16
8.2.120.0100.00017.75
8.2.110.0060.00321.98
8.2.100.0090.00317.75
8.2.90.0000.00719.21
8.2.80.0050.00317.97
8.2.70.0030.00617.49
8.2.60.0050.00318.04
8.2.50.0060.00618.07
8.2.40.0040.00421.06
8.2.30.0040.00418.00
8.2.20.0040.00417.75
8.2.10.0030.00517.94
8.2.00.0000.00818.13
8.1.280.0100.01025.92
8.1.270.0090.00920.21
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0000.01022.48
8.1.230.0090.00317.42
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0090.00017.36
8.1.190.0000.00817.35
8.1.180.0050.00318.10
8.1.170.0030.00518.50
8.1.160.0000.00822.07
8.1.150.0040.00418.83
8.1.140.0040.00417.52
8.1.130.0000.00717.77
8.1.120.0070.00017.47
8.1.110.0040.00417.47
8.1.100.0000.00717.47
8.1.90.0030.00317.47
8.1.80.0080.00017.35
8.1.70.0070.00017.36
8.1.60.0060.00317.59
8.1.50.0000.00817.52
8.1.40.0030.00517.43
8.1.30.0040.00417.64
8.1.20.0030.00517.60
8.1.10.0040.00417.46
8.1.00.0000.00817.52
8.0.300.0050.00218.77
8.0.290.0070.00016.75
8.0.280.0030.00318.39
8.0.270.0030.00317.26
8.0.260.0030.00617.25
8.0.250.0070.00016.95
8.0.240.0000.00816.95
8.0.230.0070.00016.96
8.0.220.0040.00416.89
8.0.210.0030.00316.79
8.0.200.0000.00617.04
8.0.190.0080.00417.01
8.0.180.0040.00417.01
8.0.170.0080.00017.02
8.0.160.0030.00316.96
8.0.150.0040.00416.82
8.0.140.0000.00716.79
8.0.130.0030.00313.34
8.0.120.0040.00416.86
8.0.110.0040.00416.90
8.0.100.0030.00516.93
8.0.90.0040.00416.84
8.0.80.0030.01416.99
8.0.70.0070.00017.02
8.0.60.0070.00016.86
8.0.50.0000.00716.83
8.0.30.0130.00617.12
8.0.20.0080.01117.40
8.0.10.0070.00017.02
8.0.00.0120.00616.91
7.4.330.0050.00015.14
7.4.320.0000.00716.59
7.4.300.0070.00016.53
7.4.290.0050.00316.50
7.4.280.0040.00416.39
7.4.270.0000.00616.50
7.4.260.0000.00816.63
7.4.250.0040.00416.57
7.4.240.0030.00316.55
7.4.230.0070.00016.59
7.4.220.0060.01216.47
7.4.210.0070.00716.58
7.4.200.0020.00516.59
7.4.160.0070.01416.76
7.4.150.0030.01417.40
7.4.140.0220.00817.86
7.4.130.0150.00316.62
7.4.120.0080.01016.62
7.4.110.0130.00416.57
7.4.100.0080.01216.63
7.4.90.0070.01116.42
7.4.80.0060.01619.39
7.4.70.0030.02016.73
7.4.60.0070.01016.64
7.4.50.0050.00316.42
7.4.40.0130.00316.63
7.4.30.0120.00616.53
7.4.00.0100.00715.09
7.3.330.0020.00213.26
7.3.320.0050.00013.24
7.3.310.0030.00316.31
7.3.300.0060.00016.14
7.3.290.0030.00316.33
7.3.280.0090.00916.33
7.3.270.0070.01017.40
7.3.260.0120.00616.21
7.3.250.0050.01216.40
7.3.240.0070.01016.25
7.3.230.0110.01016.53
7.3.210.0140.00416.27
7.3.200.0080.01116.30
7.3.190.0060.01016.34
7.3.180.0130.00316.61
7.3.170.0130.00316.40
7.3.160.0070.01116.46
7.3.120.0040.01514.99
7.3.110.0030.01314.93
7.3.100.0110.00414.60
7.3.90.0040.01114.82
7.3.80.0110.00314.83
7.3.70.0030.00714.66
7.3.60.0080.00414.81
7.3.50.0000.00814.84
7.3.40.0070.00314.63
7.3.30.0040.01214.84
7.3.20.0070.00716.27
7.3.10.0100.00716.63
7.3.00.0060.00316.80
7.2.330.0140.01016.49
7.2.320.0180.00416.55
7.2.310.0070.01016.80
7.2.300.0150.00716.81
7.2.290.0100.00716.64
7.2.240.0060.01215.23
7.2.230.0100.00614.91
7.2.220.0060.00915.22
7.2.210.0080.00615.34
7.2.200.0090.00015.24
7.2.190.0070.00715.19
7.2.180.0030.00915.07
7.2.170.0090.00915.12
7.2.160.0060.00315.01
7.2.150.0060.00316.98
7.2.140.0040.01116.80
7.2.130.0130.00317.01
7.2.120.0060.00916.88
7.2.110.0120.00616.62
7.2.100.0070.01117.04
7.2.90.0090.00317.00
7.2.80.0040.01016.93
7.2.70.0070.01317.16
7.2.60.0080.01116.68
7.2.50.0040.01816.82
7.2.40.0180.00416.79
7.2.30.0080.00316.71
7.2.20.0040.00717.14
7.2.10.0040.00817.00
7.2.00.0050.01218.27
7.1.330.0100.00715.62
7.1.320.0030.01215.66
7.1.310.0000.01215.82
7.1.300.0070.00715.85
7.1.290.0040.00415.93
7.1.280.0000.01015.76
7.1.270.0100.00315.80
7.1.260.0070.01015.45
7.1.250.0130.00315.75
7.1.200.0100.00715.34
7.1.100.0070.00418.13
7.1.70.0080.00316.80
7.1.60.0120.00320.03
7.1.50.0100.01416.77
7.1.00.0100.07022.57
7.0.200.0260.00314.64
7.0.60.0070.07319.95
7.0.50.0030.08717.86
7.0.40.0130.08320.14
7.0.30.0270.08020.12
7.0.20.0330.07020.16
7.0.10.0000.07320.22
7.0.00.0030.04320.33
5.6.280.0030.05320.86
5.6.210.0170.07020.57
5.6.200.0070.07718.29
5.6.190.0030.04320.67
5.6.180.3770.04020.77
5.6.170.0270.03320.50
5.6.160.0030.04720.53
5.6.150.0030.05018.28
5.6.140.0030.07318.15
5.6.130.0070.03718.18
5.6.120.0170.06321.01
5.6.110.0100.09320.99
5.6.100.0170.05321.01
5.6.90.0070.06720.95
5.6.80.0030.07020.39
5.5.350.0200.06320.31
5.5.340.0230.06718.03
5.5.330.0000.06720.46
5.5.320.3170.04020.32
5.5.310.0170.04320.20
5.5.300.0030.04017.95
5.5.290.0130.06717.98
5.5.280.0070.04720.97
5.5.270.0130.07720.88
5.5.260.0030.04320.87
5.5.250.0070.07320.50
5.5.240.3570.03320.23
5.4.450.0570.05019.31
5.4.440.0600.05719.38
5.4.430.0500.05719.58
5.4.420.0530.05319.47
5.4.410.0570.05019.32
5.4.400.0500.06319.13
5.4.390.0570.04319.26
5.4.380.0570.04719.15
5.4.370.0500.06018.98
5.4.360.0430.05019.22
5.4.350.0430.05319.13
5.4.340.0570.05719.14
5.4.320.0570.05019.06
5.4.310.0530.05019.30
5.4.300.0470.05719.23
5.4.290.0570.05718.87
5.4.280.0470.07019.05
5.4.270.0800.05719.37
5.4.260.0530.05718.87
5.4.250.0600.04719.14
5.4.240.0500.05719.29
5.4.230.0430.05319.24
5.4.220.0670.08019.14
5.4.210.0530.05319.25
5.4.200.0630.06019.11
5.4.190.0500.05319.22
5.4.180.0530.05319.00
5.4.170.0500.05319.15
5.4.160.0400.05319.24
5.4.150.0530.04318.99
5.4.140.0400.05316.57
5.4.130.0430.04316.38
5.4.120.0330.05316.41
5.4.110.0500.04016.62
5.4.100.0430.06016.48
5.4.90.0530.05016.24
5.4.80.0500.04016.57
5.4.70.0100.05016.34
5.4.60.0330.06016.38
5.4.50.0030.07316.38
5.4.40.0300.06716.52
5.4.30.0330.03716.55
5.4.20.0330.06716.31

preferences:
57.3 ms | 401 KiB | 5 Q