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, $a8 = 'string', &$a9 = 111, array $a10 = array('a', 'b', 'c' => 'd'), array &$a11 = null, Type $a12 = null, Type &$a13 = null, Namespaced\Type $a14 = null, Namespaced\Type &$a15 = 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)
8.3.60.0210.00018.30
8.3.50.0250.01021.20
8.3.40.0110.00418.52
8.3.30.0040.01118.95
8.3.20.0040.00420.29
8.3.10.0030.00521.90
8.3.00.0050.00319.13
8.2.180.0120.00316.88
8.2.170.0090.01222.96
8.2.160.0150.00720.53
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0000.00726.16
8.2.120.0060.00322.24
8.2.110.0070.01520.52
8.2.100.0060.00618.09
8.2.90.0030.00519.04
8.2.80.0030.00617.97
8.2.70.0000.00817.63
8.2.60.0060.00317.92
8.2.50.0030.00618.07
8.2.40.0050.00319.82
8.2.30.0030.00618.11
8.2.20.0030.00717.77
8.2.10.0040.00417.99
8.2.00.0080.00017.83
8.1.280.0180.00325.92
8.1.270.0000.00922.18
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.96
8.1.230.0030.00719.21
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0030.00617.22
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0030.00718.65
8.1.160.0040.00422.01
8.1.150.0050.00218.82
8.1.140.0040.00417.46
8.1.130.0000.00917.74
8.1.120.0040.00317.51
8.1.110.0040.00417.47
8.1.100.0050.00317.47
8.1.90.0000.00717.54
8.1.80.0070.00017.39
8.1.70.0040.00417.50
8.1.60.0070.00317.58
8.1.50.0030.00617.57
8.1.40.0030.00517.51
8.1.30.0030.00517.61
8.1.20.0040.00417.75
8.1.10.0060.00317.46
8.1.00.0100.00017.52
8.0.300.0040.00418.77
8.0.290.0000.00816.58
8.0.280.0040.00418.39
8.0.270.0000.00817.24
8.0.260.0000.00617.13
8.0.250.0000.00716.80
8.0.240.0040.00416.84
8.0.230.0030.00516.96
8.0.220.0030.00616.82
8.0.210.0000.00716.80
8.0.200.0000.00716.98
8.0.190.0050.00316.95
8.0.180.0050.00316.96
8.0.170.0040.00416.86
8.0.160.0060.00316.87
8.0.150.0050.00216.84
8.0.140.0080.00016.82
8.0.130.0000.00613.43
8.0.120.0040.00416.76
8.0.110.0000.00816.75
8.0.100.0030.00516.78
8.0.90.0030.00516.74
8.0.80.0090.01416.89
8.0.70.0030.00516.92
8.0.60.0040.00416.71
8.0.50.0000.00816.91
8.0.30.0150.00716.93
8.0.20.0080.01117.40
8.0.10.0000.00716.84
8.0.00.0070.01116.65
7.4.330.0000.00515.00
7.4.320.0030.00316.53
7.4.300.0030.00316.48
7.4.290.0000.00816.63
7.4.280.0030.00516.54
7.4.270.0070.00016.64
7.4.260.0100.00316.50
7.4.250.0060.00316.55
7.4.240.0030.00516.60
7.4.230.0000.00716.43
7.4.220.0030.01616.60
7.4.210.0120.00616.46
7.4.200.0000.00716.70
7.4.160.0070.01016.33
7.4.150.0130.00617.40
7.4.140.0090.01317.86
7.4.130.0110.00816.50
7.4.120.0060.01216.42
7.4.110.0100.00716.66
7.4.100.0060.01216.56
7.4.90.0100.01316.47
7.4.80.0070.01419.39
7.4.70.0070.01616.59
7.4.60.0090.00916.25
7.4.50.0030.00516.39
7.4.40.0100.01016.47
7.4.30.0090.00916.42
7.4.00.0100.00315.07
7.3.330.0000.00513.08
7.3.320.0000.00613.26
7.3.310.0040.00416.24
7.3.300.0000.00716.15
7.3.290.0030.01016.30
7.3.280.0100.00716.24
7.3.270.0150.01117.40
7.3.260.0120.00616.37
7.3.250.0100.01016.41
7.3.240.0070.01116.54
7.3.230.0090.00916.39
7.3.210.0060.01316.56
7.3.200.0090.01419.39
7.3.190.0090.01216.39
7.3.180.0170.00716.43
7.3.170.0090.00616.27
7.3.160.0130.00316.29
7.3.10.0210.00416.07
7.3.00.0030.01115.96
7.2.330.0090.00916.59
7.2.320.0100.01316.34
7.2.310.0130.00316.54
7.2.300.0100.00716.50
7.2.290.0150.00916.45
7.2.130.0180.00316.00
7.2.120.0070.01016.73
7.2.110.0140.00716.52
7.2.100.0080.00616.42
7.2.90.0140.00816.77
7.2.80.0040.01516.58
7.2.70.0090.00816.81
7.2.60.0180.01416.28
7.2.50.0310.00316.75
7.2.40.0180.01416.74
7.2.30.0240.00316.23
7.2.20.0180.01516.48
7.2.10.0150.01216.70
7.2.00.0060.00617.98
7.1.250.0060.00915.38
7.1.100.0030.00917.85
7.1.70.0000.00816.85
7.1.60.0090.01519.11
7.1.50.0000.02316.94
7.1.00.0000.08022.51
7.0.200.0000.00916.64
7.0.140.0100.06721.95
7.0.60.0170.07321.74
7.0.50.0130.08017.97
7.0.40.0170.07720.30
7.0.30.0270.03720.07
7.0.20.0370.07720.10
7.0.10.0070.04020.10
7.0.00.0030.06020.16
5.6.280.0100.06721.13
5.6.210.0070.06320.48
5.6.200.0000.04318.19
5.6.190.0030.04320.45
5.6.180.0370.05320.63
5.6.170.0230.07320.45
5.6.160.0100.07020.39
5.6.150.0070.04018.23
5.6.140.0000.04318.21
5.6.130.0100.05718.18
5.6.120.0100.06721.13
5.6.110.0030.08321.15
5.6.100.0070.08021.02
5.6.90.0130.06321.11
5.6.80.0070.03720.39
5.5.350.0130.04320.39
5.5.340.0030.07017.98
5.5.330.0030.04020.13
5.5.320.0300.05720.27
5.5.310.0300.07720.36
5.5.300.0030.04018.05
5.5.290.0070.05017.98
5.5.280.0130.07020.63
5.5.270.0130.06020.66
5.5.260.0070.08320.85
5.5.250.0100.08320.75
5.5.240.0200.07320.21
5.4.450.4500.04319.39
5.4.440.2630.05019.53
5.4.430.4270.04319.46
5.4.420.3900.03019.54
5.4.410.3700.03019.13
5.4.400.3900.04318.98
5.4.390.3830.04319.13
5.4.380.3470.03319.06
5.4.370.4130.04319.10
5.4.360.3670.03318.97
5.4.350.3830.04319.06
5.4.340.3730.04319.23
5.4.320.3530.04019.00
5.4.310.3700.03719.23
5.4.300.4130.04018.95
5.4.290.3870.04019.22
5.4.280.3970.03319.23
5.4.270.3930.03719.17
5.4.260.2000.04319.17
5.4.250.2930.03319.12
5.4.240.3670.03319.20
5.4.230.3970.03719.22
5.4.220.4070.04019.14
5.4.210.3730.04018.98
5.4.200.3070.04319.22
5.4.190.3570.03319.23
5.4.180.3600.03319.05
5.4.170.3400.03719.03
5.4.160.3970.04319.11
5.4.150.4300.04019.15
5.4.140.3970.03316.56
5.4.130.3670.03716.45
5.4.120.3830.03016.56
5.4.110.3870.03016.60
5.4.100.3870.03716.27
5.4.90.4070.04016.56
5.4.80.4470.04016.67
5.4.70.3730.03316.39
5.4.60.3730.03316.45
5.4.50.3900.03716.43
5.4.40.3830.03716.21
5.4.30.3900.03316.42
5.4.20.3970.03016.53
5.4.10.4030.02716.30
5.4.00.3800.04015.84
5.3.290.4030.03714.70
5.3.280.3600.04014.64
5.3.270.3770.03314.68
5.3.260.3930.03714.65
5.3.250.4270.04014.66
5.3.240.3700.04014.64
5.3.230.3670.03314.77
5.3.220.4000.03714.58
5.3.210.3930.03714.61
5.3.200.4000.02714.60
5.3.190.4500.03714.59
5.3.180.4700.03714.59
5.3.170.4330.04014.60
5.3.160.3930.04014.63
5.3.150.4170.04314.66
5.3.140.3800.03314.50
5.3.130.4000.03714.49
5.3.120.3870.03714.63
5.3.110.3630.03314.72
5.3.100.3970.03713.94
5.3.90.3870.04313.99
5.3.80.3630.04014.04
5.3.70.3830.03713.98
5.3.60.3970.03714.04
5.3.50.3870.04313.99
5.3.40.4000.03314.13
5.3.30.3830.03714.00
5.3.20.3870.04013.77
5.3.10.3800.03313.82
5.3.00.0100.03013.71
5.2.170.3070.03711.30
5.2.160.1230.04011.11
5.2.150.3070.03011.00
5.2.140.3400.03011.22
5.2.130.3330.02311.03
5.2.120.3330.03011.04
5.2.110.0000.03710.95
5.2.100.0070.06011.03
5.2.90.0070.03310.99
5.2.80.3700.02711.00
5.2.70.3730.03010.95
5.2.60.3870.02710.98
5.2.50.3300.03010.99
5.2.40.2870.03310.81
5.2.30.2830.03310.86
5.2.20.3070.02710.86
5.2.10.2770.02010.87
5.2.00.2570.03010.72
5.1.60.2470.02310.05
5.1.50.2470.02710.01
5.1.40.3330.01310.13
5.1.30.3000.03010.30
5.1.20.3200.03310.43
5.1.10.2730.02310.09
5.1.00.2570.02710.06
5.0.50.1270.0208.54
5.0.40.1400.0238.48
5.0.30.1170.0338.19
5.0.20.0000.0278.25
5.0.10.0030.0208.13
5.0.00.0000.0678.20
4.4.90.1770.0176.36
4.4.80.1670.0176.37
4.4.70.1770.0176.38
4.4.60.1470.0136.38
4.4.50.1570.0136.38
4.4.40.1570.0276.40
4.4.30.1270.0176.40
4.4.20.1700.0176.46
4.4.10.1200.0176.48
4.4.00.1400.0276.51
4.3.110.1630.0136.52
4.3.100.0000.0176.52
4.3.90.0000.0206.52
4.3.80.0000.0306.52
4.3.70.0000.0176.52
4.3.60.0000.0176.52
4.3.50.0030.0136.52
4.3.40.0000.0376.52
4.3.30.0430.0306.52
4.3.20.0700.0236.53
4.3.10.0770.0236.54
4.3.00.0870.0236.54

preferences:
45.34 ms | 401 KiB | 5 Q