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)); $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.0000.07721.03
5.6.210.0230.06720.73
5.6.200.0070.05318.29
5.6.190.0070.06720.34
5.6.180.0330.07320.47
5.6.170.1030.04320.50
5.6.160.0070.07320.50
5.6.150.0030.05318.12
5.6.140.0070.05318.14
5.6.130.0070.05018.23
5.6.120.0070.04720.85
5.6.110.0070.04721.05
5.6.100.0100.08020.98
5.6.90.0000.08021.09
5.6.80.0030.05020.40
5.5.350.0130.08320.42
5.5.340.0070.05317.99
5.5.330.0100.06020.21
5.5.320.0370.06020.20
5.5.310.0300.08020.51
5.5.300.0100.07717.93
5.5.290.0030.05718.05
5.5.280.0100.07720.81
5.5.270.0170.02720.81
5.5.260.0100.08020.88
5.5.250.0100.08020.48
5.5.240.0170.08020.20
5.4.450.0830.06319.69
5.4.440.0770.06319.45
5.4.430.0770.05019.55
5.4.420.0670.00019.52
5.4.410.0870.00019.45
5.4.400.0630.00019.12
5.4.390.0600.00019.07
5.4.380.0670.00019.25
5.4.370.0630.00019.11
5.4.360.0600.00019.13
5.4.350.0630.00019.04
5.4.340.0050.03512.03
5.4.320.0060.03612.52
5.4.310.0060.03712.51
5.4.300.0090.03512.51
5.4.290.0100.03512.50
5.4.280.0070.03512.41
5.4.270.0070.03412.41
5.4.260.0070.03712.40
5.4.250.0060.03812.41
5.4.240.0080.03312.41
5.4.230.0060.03712.39
5.4.220.0060.03512.40
5.4.210.0050.03512.40
5.4.200.0040.04012.40
5.4.190.0050.03712.40
5.4.180.0020.04012.39
5.4.170.0060.03712.40
5.4.160.0030.03912.40
5.4.150.0050.03612.40
5.4.140.0050.03912.07
5.4.130.0100.03812.07
5.4.120.0050.03712.02
5.4.110.0090.04812.02
5.4.100.0050.05012.02
5.4.90.0090.04612.02
5.4.80.0090.04612.02
5.4.70.0090.03912.02
5.4.60.0120.03512.02
5.4.50.0110.03512.02
5.4.40.0080.04912.01
5.4.30.0100.04012.00
5.4.20.0070.04112.00
5.4.10.0070.03912.00
5.4.00.0100.03411.49
5.3.290.0110.04312.80
5.3.280.0080.04312.71
5.3.270.0080.06012.72
5.3.260.0090.04012.72
5.3.250.0080.04012.72
5.3.240.0070.03812.72
5.3.230.0060.04412.71
5.3.220.0110.04912.68
5.3.210.0080.04912.68
5.3.200.0080.03512.68
5.3.190.0050.03912.67
5.3.180.0080.03912.68
5.3.170.0070.03712.67
5.3.160.0090.03912.67
5.3.150.0030.04112.67
5.3.140.0020.04512.66
5.3.130.0080.03712.66
5.3.120.0080.04612.66
5.3.110.0060.03912.66
5.3.100.0120.04412.14
5.3.90.0100.05312.12
5.3.80.0130.03512.11
5.3.70.0040.03912.11
5.3.60.0060.03712.10
5.3.50.0130.04212.04
5.3.40.0090.04212.04
5.3.30.0060.04012.00
5.3.20.0070.03611.79
5.3.10.0080.04311.75
5.3.00.0140.04511.73
5.2.170.0030.0369.18
5.2.160.0040.0319.18
5.2.150.0030.0339.18
5.2.140.0080.0339.18
5.2.130.0040.0359.14
5.2.120.0060.0379.14
5.2.110.0160.0489.15
5.2.100.0050.0379.14
5.2.90.0080.0409.15
5.2.80.0100.0319.13
5.2.70.0040.0339.14
5.2.60.0040.0599.09
5.2.50.0090.0269.06
5.2.40.0050.0329.04
5.2.30.0030.0359.02
5.2.20.0060.0369.00
5.2.10.0070.0588.92
5.2.00.0100.0348.78
5.1.60.0050.0308.07
5.1.50.0050.0308.07
5.1.40.0070.0308.05
5.1.30.0080.0258.40
5.1.20.0040.0308.42
5.1.10.0090.0218.14
5.1.00.0020.0298.14
5.0.50.0030.0226.62
5.0.40.0040.0196.48
5.0.30.0050.0306.29
5.0.20.0040.0196.26
5.0.10.0070.0166.25
5.0.00.0040.0316.23
4.4.90.0060.0144.78
4.4.80.0040.0154.76
4.4.70.0040.0154.76
4.4.60.0050.0134.76
4.4.50.0040.0194.77
4.4.40.0030.0364.71
4.4.30.0030.0174.75
4.4.20.0050.0204.84
4.4.10.0090.0304.85
4.4.00.0050.0304.76
4.3.110.0050.0204.67
4.3.100.0060.0134.66
4.3.90.0030.0164.63
4.3.80.0030.0264.59
4.3.70.0050.0124.63
4.3.60.0030.0154.63
4.3.50.0030.0154.63
4.3.40.0030.0234.54
4.3.30.0030.0163.28
4.3.20.0030.0173.27
4.3.10.0030.0163.22
4.3.00.0030.0307.42

preferences:
139.82 ms | 1398 KiB | 7 Q