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 { $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.0070.00716.50
8.3.50.0080.01021.08
8.3.40.0140.00418.82
8.3.30.0090.00618.84
8.3.20.0080.00020.22
8.3.10.0040.00421.85
8.3.00.0060.00319.53
8.2.180.0090.00618.48
8.2.170.0070.01022.96
8.2.160.0070.00720.41
8.2.150.0040.00424.18
8.2.140.0120.00324.66
8.2.130.0080.00026.16
8.2.120.0090.00017.38
8.2.110.0040.00422.27
8.2.100.0000.01217.63
8.2.90.0050.00319.05
8.2.80.0000.00817.97
8.2.70.0070.00317.63
8.2.60.0050.00317.80
8.2.50.0070.00318.07
8.2.40.0040.00421.10
8.2.30.0000.00718.12
8.2.20.0040.00417.63
8.2.10.0000.00817.94
8.2.00.0040.00418.11
8.1.280.0040.01125.92
8.1.270.0120.00320.38
8.1.260.0020.00526.35
8.1.250.0070.00028.09
8.1.240.0040.00422.46
8.1.230.0080.00417.42
8.1.220.0080.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00717.48
8.1.190.0080.00017.22
8.1.180.0040.00418.10
8.1.170.0040.00418.53
8.1.160.0050.00322.01
8.1.150.0000.00718.94
8.1.140.0000.00917.48
8.1.130.0030.00317.68
8.1.120.0000.00717.45
8.1.110.0000.00817.35
8.1.100.0000.00717.52
8.1.90.0000.00717.53
8.1.80.0070.00017.42
8.1.70.0000.00717.49
8.1.60.0030.00517.56
8.1.50.0060.00317.52
8.1.40.0050.00317.51
8.1.30.0060.00317.68
8.1.20.0000.00817.59
8.1.10.0000.00717.49
8.1.00.0020.00517.41
8.0.300.0040.00418.77
8.0.290.0070.00316.75
8.0.280.0000.00718.45
8.0.270.0070.00017.30
8.0.260.0080.00317.17
8.0.250.0000.00716.84
8.0.240.0030.00316.85
8.0.230.0000.00816.85
8.0.220.0070.00016.91
8.0.210.0030.00316.93
8.0.200.0030.00317.01
8.0.190.0050.00516.93
8.0.180.0000.00716.86
8.0.170.0000.00716.95
8.0.160.0020.00516.92
8.0.150.0000.00816.80
8.0.140.0030.00316.92
8.0.130.0000.00513.38
8.0.120.0080.00016.95
8.0.110.0030.00616.95
8.0.100.0050.00216.74
8.0.90.0000.00716.84
8.0.80.0070.01016.95
8.0.70.0030.00516.73
8.0.60.0000.00816.84
8.0.50.0000.00716.86
8.0.30.0130.00516.88
8.0.20.0120.00617.40
8.0.10.0030.00517.11
8.0.00.0080.00916.82
7.4.330.0000.00515.10
7.4.320.0000.00616.63
7.4.300.0060.00016.43
7.4.290.0020.00516.55
7.4.280.0070.00016.52
7.4.270.0030.00316.62
7.4.260.0000.00916.40
7.4.250.0050.00316.52
7.4.240.0020.00516.57
7.4.230.0000.00816.40
7.4.220.0130.01316.69
7.4.210.0070.00816.66
7.4.200.0040.00416.61
7.4.160.0100.00516.71
7.4.150.0120.00617.40
7.4.140.0150.01017.86
7.4.130.0130.00616.57
7.4.120.0090.01016.54
7.4.110.0090.00916.40
7.4.100.0110.00816.54
7.4.90.0030.01416.45
7.4.80.0060.01619.39
7.4.70.0140.00316.59
7.4.60.0070.01016.46
7.4.50.0040.00416.69
7.4.40.0080.00816.38
7.4.30.0130.01016.59
7.4.00.0080.00815.01
7.3.330.0030.00313.28
7.3.320.0030.00313.32
7.3.310.0050.00316.16
7.3.300.0030.00316.31
7.3.290.0000.00716.27
7.3.280.0100.00716.32
7.3.270.0040.01317.40
7.3.260.0030.01316.50
7.3.250.0120.00816.50
7.3.240.0100.00716.43
7.3.230.0090.00916.41
7.3.210.0130.00616.63
7.3.200.0030.01316.58
7.3.190.0110.00816.32
7.3.180.0070.01016.49
7.3.170.0100.00616.45
7.3.160.0070.01316.46
7.3.120.0060.01214.87
7.3.110.0100.00714.97
7.3.100.0000.01114.84
7.3.90.0120.00614.62
7.3.80.0160.00014.82
7.3.70.0030.00614.90
7.3.60.0040.00714.63
7.3.50.0000.01414.80
7.3.40.0050.00514.86
7.3.30.0000.00914.91
7.3.20.0030.00816.80
7.3.10.0060.00616.65
7.3.00.0040.01116.75
7.2.330.0060.01116.80
7.2.320.0140.00716.42
7.2.310.0030.01416.95
7.2.300.0090.00916.67
7.2.290.0180.00416.58
7.2.250.0090.00915.26
7.2.240.0070.01115.12
7.2.230.0040.01515.00
7.2.220.0060.00615.26
7.2.210.0090.00614.88
7.2.200.0110.00314.70
7.2.190.0030.00615.26
7.2.180.0060.00314.93
7.2.170.0030.01214.92
7.2.60.0090.00616.88
7.2.00.0000.01819.61
7.1.330.0030.01015.82
7.1.320.0070.00715.88
7.1.310.0070.01016.00
7.1.300.0130.00015.63
7.1.290.0040.00715.82
7.1.280.0070.01015.54
7.1.270.0090.00015.66
7.1.260.0030.01015.90
7.1.200.0720.00715.59
7.1.70.0050.00316.95
7.1.60.0070.01117.06
7.1.50.0040.01816.90
7.1.00.0070.07322.30
7.0.200.0000.01316.71
7.0.60.0170.05021.82
7.0.50.0100.07717.91
7.0.40.0030.08720.23
7.0.30.0270.07020.23
7.0.20.0330.06320.21
7.0.10.0230.04320.07
7.0.00.0100.03720.23
5.6.280.0000.07720.89
5.6.210.0100.07720.54
5.6.200.0070.04018.19
5.6.190.0000.05720.39
5.6.180.0100.06720.77
5.6.170.0530.06320.47
5.6.160.0070.07720.71
5.6.150.0030.04318.19
5.6.140.0170.04318.18
5.6.130.0000.08318.24
5.6.120.0230.07320.90
5.6.110.0130.09321.13
5.6.100.0000.07020.96
5.6.90.0100.07720.98
5.6.80.0030.08720.48
5.5.350.0070.08020.48
5.5.340.0070.08018.08
5.5.330.0130.04720.13
5.5.320.0430.06720.38
5.5.310.0200.04720.26
5.5.300.0070.04018.04
5.5.290.0070.06317.98
5.5.280.0070.07320.88
5.5.270.0170.04720.65
5.5.260.0200.07720.85
5.5.250.0100.08320.71
5.5.240.0100.07020.16
5.4.450.0600.05719.31
5.4.440.0570.05719.63
5.4.430.0600.05019.44
5.4.420.0630.05319.61
5.4.410.0530.05719.35
5.4.400.0600.04719.02
5.4.390.0370.06319.26
5.4.380.0500.04719.15
5.4.370.0570.07019.38
5.4.360.0630.06019.06
5.4.350.0530.05318.88
5.4.340.0570.05319.06
5.4.320.0700.03719.16
5.4.310.0530.04319.21
5.4.300.0570.05019.29
5.4.290.0500.04719.11
5.4.280.0570.05318.84
5.4.270.0670.04319.22
5.4.260.0470.06018.86
5.4.250.0700.04019.25
5.4.240.0630.03719.00
5.4.230.0570.06719.21
5.4.220.0430.06019.28
5.4.210.0400.05718.84
5.4.200.0500.04719.14
5.4.190.0830.05718.84
5.4.180.0500.05718.86
5.4.170.0530.05319.29
5.4.160.0630.06719.24
5.4.150.0530.05719.13
5.4.140.0530.06316.43
5.4.130.0400.05016.40
5.4.120.0400.04716.73
5.4.110.0470.05016.52
5.4.100.0370.05316.52
5.4.90.0530.05016.62
5.4.80.0670.06716.63
5.4.70.0030.03316.55
5.4.60.0030.05316.43
5.4.50.0030.06716.53
5.4.40.0000.03316.25
5.4.30.0300.07316.55
5.4.20.0370.06016.53
5.4.10.0000.08016.42

preferences:
51.48 ms | 401 KiB | 5 Q