3v4l.org

run code in 300+ PHP versions simultaneously
<?php $function = new ReflectionFunction(function( $a0, &$a1, array $a2, array &$a3, Type $a4, Type &$a5, Namespaced\Type $a6, Namespaced\Type &$a7, $a0 = 'string', &$a1 = 111, array $a2 = array('a', 'b', 'c' => 'd'), array &$a3 = null, Type $a4 = null, Type &$a5 = null, Namespaced\Type $a6 = null, Namespaced\Type &$a7 = null ){}); $parameters = $function->getParameters(); var_dump(array_map('strval', $parameters)); var_dump(array_map(function($parameter){return $parameter->getName();}, $parameters)); $function = new ReflectionFunction(function( $a0 = ReflectionMethod::IS_FINAL ){}); $parameters = $function->getParameters(); var_dump(array_map('strval', $parameters)); $function = new ReflectionFunction(function( callable $a0, callable $a1 = null ){}); $parameters = $function->getParameters(); var_dump(array_map('strval', $parameters));

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)
5.6.280.0070.07321.00
5.6.210.0100.06720.69
5.6.200.0100.06718.16
5.6.190.0170.09320.61
5.6.180.0270.05720.77
5.6.170.1430.05720.56
5.6.160.0070.06020.71
5.6.150.0070.08018.19
5.6.140.0030.05718.15
5.6.130.0070.03718.18
5.6.120.0100.08320.80
5.6.110.0070.08021.04
5.6.100.0100.08021.10
5.6.90.0000.04321.09
5.6.80.0230.06320.43
5.5.350.0170.07720.45
5.5.340.0070.03317.98
5.5.330.0100.08320.19
5.5.320.0400.06320.36
5.5.310.0300.07320.51
5.5.300.0100.08018.05
5.5.290.0170.07017.92
5.5.280.0170.07720.79
5.5.270.0100.03320.88
5.5.260.0100.08020.66
5.5.250.0170.06320.73
5.5.240.0230.07320.20
5.4.450.0870.06019.41
5.4.440.0800.06019.57
5.4.430.0870.05019.60
5.4.420.0630.00019.51
5.4.410.0630.00019.21
5.4.400.0630.00018.92
5.4.390.0630.00019.25
5.4.380.0630.00019.14
5.4.370.0670.00018.98
5.4.360.0630.00019.04
5.4.350.0630.00019.04
5.4.340.0050.04112.03
5.4.320.0060.04112.52
5.4.310.0070.04012.51
5.4.300.0100.04112.52
5.4.290.0120.03712.51
5.4.280.0020.04012.41
5.4.270.0080.04312.41
5.4.260.0080.04012.41
5.4.250.0080.04212.41
5.4.240.0080.03912.41
5.4.230.0060.04412.40
5.4.220.0080.03712.40
5.4.210.0080.03412.40
5.4.200.0110.04312.40
5.4.190.0100.03612.40
5.4.180.0090.04712.40
5.4.170.0050.03712.41
5.4.160.0090.03812.40
5.4.150.0080.04212.40
5.4.140.0050.04112.08
5.4.130.0060.03612.07
5.4.120.0110.03812.02
5.4.110.0070.03612.03
5.4.100.0070.03612.02
5.4.90.0070.03912.02
5.4.80.0090.04512.03
5.4.70.0040.03912.02
5.4.60.0080.03912.02
5.4.50.0060.04312.02
5.4.40.0080.03712.01
5.4.30.0110.03412.00
5.4.20.0040.04212.00
5.4.10.0050.04212.00
5.4.00.0100.03411.50
5.3.290.0070.04112.80
5.3.280.0090.03812.71
5.3.270.0070.03912.73
5.3.260.0050.04212.72
5.3.250.0050.04112.72
5.3.240.0060.04612.72
5.3.230.0050.04012.71
5.3.220.0080.04012.68
5.3.210.0070.05212.68
5.3.200.0070.04012.68
5.3.190.0040.04212.68
5.3.180.0090.03612.67
5.3.170.0100.03512.67
5.3.160.0090.03712.67
5.3.150.0070.03812.67
5.3.140.0070.03812.66
5.3.130.0110.03712.66
5.3.120.0090.04912.65
5.3.110.0070.04112.66
5.3.100.0030.04112.14
5.3.90.0080.03712.12
5.3.80.0120.03112.11
5.3.70.0050.04412.11
5.3.60.0080.03812.10
5.3.50.0070.03912.05
5.3.40.0080.03812.05
5.3.30.0070.04712.01
5.3.20.0070.03911.79
5.3.10.0080.03511.75
5.3.00.0070.04911.73
5.2.170.0050.0369.18
5.2.160.0040.0309.18
5.2.150.0050.0319.18
5.2.140.0080.0419.18
5.2.130.0080.0399.14
5.2.120.0070.0339.14
5.2.110.0100.0259.15
5.2.100.0070.0279.14
5.2.90.0100.0249.14
5.2.80.0060.0299.14
5.2.70.0070.0289.14
5.2.60.0060.0299.09
5.2.50.0080.0339.06
5.2.40.0080.0339.04
5.2.30.0040.0339.01
5.2.20.0050.0319.00
5.2.10.0040.0308.92
5.2.00.0060.0348.79
5.1.60.0050.0248.07
5.1.50.0030.0278.06
5.1.40.0050.0298.05
5.1.30.0070.0378.40
5.1.20.0070.0348.42
5.1.10.0070.0248.14
5.1.00.0060.0328.14
5.0.50.0030.0216.62
5.0.40.0020.0206.48
5.0.30.0080.0306.29
5.0.20.0040.0186.27
5.0.10.0040.0196.25
5.0.00.0050.0296.23
4.4.90.0050.0134.78
4.4.80.0040.0134.76
4.4.70.0010.0164.76
4.4.60.0040.0194.75
4.4.50.0040.0144.77
4.4.40.0010.0264.71
4.4.30.0000.0184.76
4.4.20.0020.0164.85
4.4.10.0020.0164.85
4.4.00.0020.0264.76
4.3.110.0030.0154.66
4.3.100.0020.0184.67
4.3.90.0030.0144.63
4.3.80.0030.0264.59
4.3.70.0050.0144.63
4.3.60.0070.0144.63
4.3.50.0050.0194.63
4.3.40.0030.0254.54
4.3.30.0020.0163.29
4.3.20.0030.0163.27
4.3.10.0020.0223.22
4.3.00.0130.0237.42

preferences:
144.37 ms | 1394 KiB | 7 Q