3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); class a { public function b(&$name, $junk) { $name = strtolower($name).$junk; } } $name = 'Rasmus'; $junk = 'junk'; $arguments = [$name, $junk]; $obj = new a; $reflectionMethod = new ReflectionMethod('a', 'b'); $closure = $reflectionMethod->getClosure($obj); $closure(...$arguments); echo $name;

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.0170.00318.30
8.3.50.0070.01222.05
8.3.40.0090.00618.79
8.3.30.0070.00719.22
8.3.20.0080.00020.35
8.3.10.0080.00021.92
8.3.00.0040.00422.40
8.2.180.0150.00016.50
8.2.170.0040.01122.96
8.2.160.0030.01020.89
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.01126.16
8.2.120.0060.00617.60
8.2.110.0090.01321.14
8.2.100.0040.00817.97
8.2.90.0070.00019.36
8.2.80.0050.00317.97
8.2.70.0090.00017.63
8.2.60.0050.00317.93
8.2.50.0080.00018.07
8.2.40.0030.00518.22
8.2.30.0000.00718.09
8.2.20.0040.00417.66
8.2.10.0040.00417.74
8.2.00.0050.00517.78
8.1.280.0210.00025.92
8.1.270.0040.00421.81
8.1.260.0040.00426.35
8.1.250.0100.00728.09
8.1.240.0030.00622.06
8.1.230.0030.00918.96
8.1.220.0000.00817.76
8.1.210.0090.00018.77
8.1.200.0030.00617.48
8.1.190.0030.00617.35
8.1.180.0000.00718.74
8.1.170.0040.00418.66
8.1.160.0040.00421.87
8.1.150.0070.00018.53
8.1.140.0040.00417.46
8.1.130.0030.00317.79
8.1.120.0040.00317.39
8.1.110.0040.00417.45
8.1.100.0030.00317.47
8.1.90.0080.00017.49
8.1.80.0050.00217.43
8.1.70.0030.00317.42
8.1.60.0000.00917.54
8.1.50.0020.00517.39
8.1.40.0070.00017.46
8.1.30.0040.00417.64
8.1.20.0030.00617.64
8.1.10.0050.00217.41
8.1.00.0060.00317.52
8.0.300.0000.00818.77
8.0.290.0000.00716.58
8.0.280.0040.00418.53
8.0.270.0000.00717.24
8.0.260.0030.00316.69
8.0.250.0040.00417.05
8.0.240.0030.00317.00
8.0.230.0070.00016.91
8.0.220.0030.00316.88
8.0.210.0000.00816.85
8.0.200.0070.00016.96
8.0.190.0080.00316.97
8.0.180.0030.00316.93
8.0.170.0090.00016.88
8.0.160.0050.00216.92
8.0.150.0000.00816.87
8.0.140.0000.00816.83
8.0.130.0030.00313.41
8.0.120.0080.00016.85
8.0.110.0040.00416.83
8.0.100.0040.00416.85
8.0.90.0030.00516.85
8.0.80.0030.01216.98
8.0.70.0040.00416.92
8.0.60.0040.00416.71
8.0.50.0040.00416.85
8.0.30.0080.01217.10
8.0.20.0120.00917.40
8.0.10.0040.00416.81
8.0.00.0080.01016.71
7.4.330.0050.00015.13
7.4.320.0030.00316.52
7.4.300.0000.00716.50
7.4.290.0050.00316.51
7.4.280.0030.00316.53
7.4.270.0030.00316.66
7.4.260.0040.00416.61
7.4.250.0000.00816.48
7.4.240.0040.00416.53
7.4.230.0000.00716.35
7.4.220.0060.00916.61
7.4.210.0070.00916.50
7.4.200.0030.00316.49
7.4.190.0030.00316.41
7.4.160.0040.01216.41
7.4.150.0100.00717.40
7.4.140.0120.00817.86
7.4.130.0170.00516.46
7.4.120.0110.00716.55
7.4.110.0080.00816.54
7.4.100.0120.00616.60
7.4.90.0090.00916.45
7.4.80.0060.01119.39
7.4.70.0030.01416.33
7.4.60.0060.00916.41
7.4.50.0030.00316.31
7.4.40.0100.00722.77
7.4.30.0080.00816.57
7.4.00.0100.00714.96
7.3.330.0000.00513.25
7.3.320.0050.00013.30
7.3.310.0000.00616.13
7.3.300.0030.00316.12
7.3.290.0080.01216.25
7.3.280.0090.00916.21
7.3.270.0030.01317.40
7.3.260.0140.00316.18
7.3.250.0050.01316.40
7.3.240.0140.00416.42
7.3.230.0120.00616.39
7.3.210.0120.00316.09
7.3.200.0160.00619.39
7.3.190.0100.01016.39
7.3.180.0030.01216.55
7.3.170.0090.01216.27
7.3.160.0080.00816.43
7.3.120.0070.01015.01
7.3.10.0060.00616.54
7.3.00.0060.00616.34
7.2.330.0100.00716.49
7.2.320.0150.00916.57
7.2.310.0030.01316.57
7.2.300.0150.00016.47
7.2.290.0080.00816.64
7.2.130.0070.00716.89
7.2.120.0000.01117.11
7.2.110.0030.01016.71
7.2.100.0030.01316.91
7.2.90.0040.01116.82
7.2.80.0070.00416.89
7.2.70.0000.01316.88
7.2.60.0070.00416.97
7.2.50.0100.00316.71
7.2.40.0000.01116.94
7.2.30.0070.00716.82
7.2.20.0070.00716.87
7.2.10.0030.01017.01
7.2.00.0030.01018.21
7.1.250.0030.00615.66
7.1.200.0000.01315.65
7.1.100.0060.00617.96
7.1.70.0000.00817.19
7.1.60.0150.00919.82
7.1.50.0000.01216.86
7.1.00.0100.07022.35
7.0.200.0030.00716.73
7.0.140.0000.07321.96
7.0.60.0130.07019.88
7.0.50.0030.08717.90
7.0.40.0100.06720.04
7.0.30.0300.08320.20
7.0.20.0370.06720.05
7.0.10.0230.08020.26
7.0.00.0000.05020.06
5.6.280.0070.07021.12
5.6.210.0100.08020.55
5.6.200.0030.06718.19
5.6.190.0030.05320.58
5.6.180.2630.04020.57
5.6.170.0330.06020.48
5.6.160.0000.04720.54
5.6.150.0170.07718.18
5.6.140.0030.07018.21
5.6.130.0030.06318.21
5.6.120.0100.04320.99
5.6.110.0000.06020.89
5.6.100.0130.07321.03
5.6.90.0030.06720.95
5.6.80.0000.05020.40
5.6.70.0100.03720.38
5.5.350.0030.07020.29
5.5.340.0070.04317.98
5.5.330.0100.04320.32
5.5.320.0370.06020.20
5.5.310.0170.04720.41
5.5.300.0130.06017.97
5.5.290.0070.08017.98
5.5.280.0000.04320.88
5.5.270.0030.05720.98
5.5.260.0100.08720.80
5.5.250.0100.07720.61
5.5.240.0070.07720.04
5.4.450.0130.05719.48
5.4.440.0100.06019.58
5.4.430.0100.05319.64
5.4.420.0130.05019.41
5.4.410.0100.05319.45
5.4.400.1600.00018.82
5.4.390.1570.00018.84
5.4.380.0200.06018.77
5.4.370.0900.04718.41
5.4.360.0300.04718.70
5.4.350.0400.04718.76
5.4.340.0200.06018.46
5.4.320.0050.03712.51
5.4.310.0060.04412.51
5.4.300.0050.03912.52
5.4.290.0060.03712.51
5.4.280.0070.04112.41
5.4.270.0050.03912.41
5.4.260.0070.06718.97
5.4.250.0100.05018.83
5.4.240.0070.05319.09
5.4.230.0030.05718.99
5.4.220.0100.07318.99
5.4.210.0100.05019.02
5.4.200.0000.06318.83
5.4.190.0100.05018.73
5.4.180.0100.06718.79
5.4.170.0100.06718.96
5.4.160.0070.05018.92
5.4.150.0170.04719.05
5.4.140.0070.05016.49
5.4.130.0070.04716.32
5.4.120.0100.04316.42
5.4.110.0070.06016.54
5.4.100.0170.05716.70
5.4.90.0070.05016.54
5.4.80.0100.04316.37
5.4.70.0070.04716.68
5.4.60.0100.04716.36
5.4.50.0100.06316.54
5.4.40.0200.05016.36
5.4.30.0030.05016.46
5.4.20.0100.04716.27
5.4.10.0170.04316.45
5.4.00.0030.05015.82
5.3.290.0020.04412.80
5.3.280.0070.07314.59
5.3.270.0070.05014.69
5.3.260.0000.05714.69
5.3.250.0100.04714.78
5.3.240.0070.05314.70
5.3.230.0100.05014.62
5.3.220.0070.05314.59
5.3.210.0100.05014.57
5.3.200.0030.05314.79
5.3.190.0230.04314.66
5.3.180.0030.05014.53
5.3.170.0030.05314.65
5.3.160.0100.04714.67
5.3.150.0030.05314.65
5.3.140.0030.05314.62
5.3.130.0100.04714.71
5.3.120.0130.04314.77
5.3.110.0070.05314.54
5.3.100.0130.06314.10
5.3.90.0100.04714.18
5.3.80.0130.04314.10
5.3.70.0130.07314.01
5.3.60.0100.06313.98
5.3.50.0070.07013.93
5.3.40.0070.05014.16
5.3.30.0200.03313.96
5.3.20.0070.05013.77
5.3.10.0070.05013.48
5.3.00.0070.05013.55
5.2.170.0130.04011.32
5.2.160.0070.03711.14
5.2.150.0030.06011.23
5.2.140.0100.03711.30
5.2.130.0070.03711.18
5.2.120.0000.04711.20
5.2.110.0030.04011.18
5.2.100.0030.06010.93
5.2.90.0030.04011.19
5.2.80.0130.03311.07
5.2.70.0030.04011.13
5.2.60.0000.04711.14
5.2.50.0000.04311.10
5.2.40.0070.03710.82
5.2.30.0030.04011.05
5.2.20.0000.04311.04
5.2.10.0030.03710.68
5.2.00.0030.04010.71
5.1.60.0000.05010.09
5.1.50.0030.03310.00
5.1.40.0030.05010.07
5.1.30.0030.03710.31
5.1.20.0030.03310.43
5.1.10.0000.0409.99
5.1.00.0100.03010.07
5.0.50.0030.0308.55
5.0.40.0070.0408.50
5.0.30.0030.0408.38
5.0.20.0100.0308.14
5.0.10.0030.0308.23
5.0.00.0130.0438.25
4.4.90.0070.0177.41
4.4.80.0000.0237.41
4.4.70.0000.0237.41
4.4.60.0070.0177.41
4.4.50.0030.0207.41
4.4.40.0000.0377.41
4.4.30.0030.0207.41
4.4.20.0000.0237.41
4.4.10.0000.0237.41
4.4.00.0100.0277.41
4.3.110.0100.0137.41
4.3.100.0000.0207.41
4.3.90.0000.0207.41
4.3.80.0030.0337.41
4.3.70.0000.0207.41
4.3.60.0070.0177.41
4.3.50.0030.0207.41
4.3.40.0030.0307.41
4.3.30.0070.0177.41
4.3.20.0000.0237.41
4.3.10.0000.0237.41
4.3.00.0030.0207.30

preferences:
45.69 ms | 401 KiB | 5 Q