3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A {} class B { public function __construct(A $a = null) { } public function test($a = null) { } } $r = new ReflectionMethod('B', 'test'); $p = $r->getParameters()[0]; var_dump($p->getName(), $p->isDefaultValueConstant(), $p->allowsNull(), $p->getDefaultValue()); $r = new ReflectionMethod('B', '__construct'); $p = $r->getParameters()[0]; var_dump($p->getName(), $p->isDefaultValueConstant(), $p->allowsNull(), $p->getDefaultValue());

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.40.0110.00418.76
8.3.30.0070.00719.04
8.3.20.0080.00020.20
8.3.10.0000.00823.61
8.3.00.0040.00418.96
8.2.170.0150.00022.96
8.2.160.0070.00720.47
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0040.00420.73
8.2.110.0000.00921.00
8.2.100.0090.00317.78
8.2.90.0040.00419.26
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0050.00317.80
8.2.50.0030.00518.10
8.2.40.0000.00720.66
8.2.30.0000.00818.20
8.2.20.0080.00017.57
8.2.10.0040.00418.11
8.2.00.0000.00717.68
8.1.270.0050.00522.20
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00022.62
8.1.230.0110.00017.77
8.1.220.0060.00317.79
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0030.00517.10
8.1.180.0080.00018.10
8.1.170.0040.00418.68
8.1.160.0000.00722.08
8.1.150.0040.00418.59
8.1.140.0000.00717.36
8.1.130.0030.00317.83
8.1.120.0000.00717.46
8.1.110.0080.00017.31
8.1.100.0040.00417.30
8.1.90.0080.00017.45
8.1.80.0040.00417.33
8.1.70.0070.00017.29
8.1.60.0060.00517.41
8.1.50.0040.00417.52
8.1.40.0030.00517.41
8.1.30.0050.00317.57
8.1.20.0000.00717.50
8.1.10.0000.00717.49
8.1.00.0030.00617.44
8.0.300.0000.00718.77
8.0.290.0000.00816.58
8.0.280.0070.00018.39
8.0.270.0030.00317.17
8.0.260.0030.00617.21
8.0.250.0030.00316.84
8.0.240.0040.00416.77
8.0.230.0070.00016.83
8.0.220.0080.00016.83
8.0.210.0000.00716.82
8.0.200.0030.00316.91
8.0.190.0060.00316.93
8.0.180.0000.00816.82
8.0.170.0000.00816.93
8.0.160.0000.00716.84
8.0.150.0100.00016.87
8.0.140.0060.00416.86
8.0.130.0070.00013.22
8.0.120.0080.00016.80
8.0.110.0080.00016.75
8.0.100.0030.00516.89
8.0.90.0000.00716.84
8.0.80.0110.01116.73
8.0.70.0040.00416.64
8.0.60.0050.00216.90
8.0.50.0000.00716.71
8.0.30.0030.01916.93
8.0.20.0080.01117.40
8.0.10.0000.00816.83
8.0.00.0050.01216.65
7.4.330.0060.00015.00
7.4.320.0000.00616.37
7.4.300.0000.00616.44
7.4.290.0070.00016.57
7.4.280.0000.00916.48
7.4.270.0070.00016.41
7.4.260.0040.00416.60
7.4.250.0040.00416.40
7.4.240.0040.00316.55
7.4.230.0040.00416.53
7.4.220.0130.00616.61
7.4.210.0110.00616.55
7.4.200.0040.00416.35
7.4.190.0030.00316.54
7.4.160.0090.00616.53
7.4.150.0140.00317.40
7.4.140.0110.00917.86
7.4.130.0120.00516.46
7.4.120.0110.00616.54
7.4.110.0090.00616.43
7.4.100.0070.01316.49
7.4.90.0060.01116.52
7.4.80.0100.01319.39
7.4.70.0140.00316.46
7.4.60.0140.00416.40
7.4.50.0020.00216.60
7.4.40.0080.00816.40
7.4.30.0060.01016.38
7.4.00.0090.00615.05
7.3.330.0020.00213.28
7.3.320.0050.00013.32
7.3.310.0040.00316.29
7.3.300.0030.00316.16
7.3.290.0030.01216.24
7.3.280.0070.00916.21
7.3.270.0100.00717.40
7.3.260.0160.00916.28
7.3.250.0080.00916.21
7.3.240.0130.00316.35
7.3.230.0050.01116.39
7.3.210.0030.01416.43
7.3.200.0090.00819.39
7.3.190.0160.00616.52
7.3.180.0080.00816.36
7.3.170.0090.01316.47
7.3.160.0170.00016.48
7.3.120.0090.00614.87
7.2.330.0180.00016.38
7.2.320.0090.00916.49
7.2.310.0060.01116.77
7.2.300.0110.00916.48
7.2.290.0130.00516.67
7.2.60.0030.01016.63
7.2.00.0000.01019.32
7.1.200.0060.00615.63
7.1.100.0110.00517.88
7.1.70.0000.00716.89
7.1.60.0040.02219.46
7.1.50.0100.01316.77
7.1.00.0030.07722.54
7.0.200.0170.00314.84
7.0.140.0000.07722.09
7.0.60.0270.04319.97
7.0.50.0030.04017.90
7.0.40.0000.04720.08
7.0.30.0370.07720.13
7.0.20.0200.03720.33
7.0.10.0130.07720.12
7.0.00.0130.04320.33
5.6.280.0030.07321.07
5.6.210.0000.06020.55
5.6.200.0100.05318.19
5.6.190.0200.06720.63
5.6.180.0270.08020.60
5.6.170.0300.07020.57
5.6.160.0030.07320.39
5.6.150.0000.05718.25
5.6.140.0130.07318.24
5.6.130.0130.08018.20
5.6.120.0100.08020.98
5.6.110.0170.07320.98
5.6.100.0000.04720.98
5.6.90.0100.07720.97
5.6.80.0170.04720.46
5.6.70.3570.03720.37
5.5.350.0070.07720.32
5.5.340.0200.07018.02
5.5.330.0100.07720.27
5.5.320.0030.07020.21
5.5.310.0300.06720.21
5.5.300.0030.07718.04
5.5.290.0170.07017.96
5.5.280.0030.04020.88
5.5.270.0100.04720.79
5.5.260.0070.05720.76
5.5.250.0070.04720.71
5.5.240.0030.08020.24
5.4.450.0730.06019.18
5.4.440.0630.05319.59
5.4.430.0100.05319.43
5.4.420.1000.07319.45
5.4.410.0770.04719.32
5.4.400.0630.06719.20
5.4.390.0730.04319.19
5.4.380.0130.05318.68
5.4.370.0070.05718.58
5.4.360.0130.05018.77
5.4.350.0100.05718.57
5.4.340.0130.05318.45
5.4.320.0050.03812.50
5.4.310.0060.03612.50
5.4.300.0070.04812.50
5.4.290.0100.04812.50
5.4.280.0070.04912.39
5.4.270.0060.05512.39
5.4.260.0080.05312.39
5.4.250.0170.10812.40
5.4.240.0120.08612.39
5.4.230.0110.05412.38
5.4.220.0100.05112.38
5.4.210.0070.05212.39
5.4.200.0060.05612.39
5.4.190.0070.04512.38
5.4.180.0110.04612.39
5.4.170.0120.04112.39
5.4.160.0080.04812.39
5.4.150.0100.04912.39
5.4.140.0120.04912.07
5.4.130.0060.04812.06
5.4.120.0070.04812.02
5.4.110.0060.04012.01
5.4.100.0110.03612.02
5.4.90.0050.04712.02
5.4.80.0100.03612.01
5.4.70.0060.03812.00
5.4.60.0040.04112.00
5.4.50.0070.04212.01
5.4.40.0120.04312.00
5.4.30.0090.04511.99
5.4.20.0060.04912.00
5.4.10.0130.04811.99
5.4.00.0110.07311.48
5.3.290.0090.03612.80
5.3.280.0150.08612.71
5.3.270.0210.07712.72
5.3.260.0090.05712.71
5.3.250.0060.06612.72
5.3.240.0090.05312.72
5.3.230.0120.05012.71
5.3.220.0090.05912.68
5.3.210.0210.09912.68
5.3.200.0170.05112.68
5.3.190.0100.05012.68
5.3.180.0100.04912.68
5.3.170.0130.04812.67
5.3.160.0110.05012.67
5.3.150.0100.05112.68
5.3.140.0150.04512.66
5.3.130.0100.05012.66
5.3.120.0110.05112.66
5.3.110.0090.05112.66
5.3.100.0090.04812.13
5.3.90.0080.05312.11
5.3.80.0080.03912.10
5.3.70.0050.03712.10
5.3.60.0070.03512.09
5.3.50.0070.03812.03
5.3.40.0070.04712.03
5.3.30.0080.04611.99
5.3.20.0070.03611.77
5.3.10.0030.03811.73
5.3.00.0080.03911.72
5.2.170.0060.0379.23
5.2.160.0070.0409.23
5.2.150.0060.0429.23
5.2.140.0070.0339.23
5.2.130.0060.0289.19
5.2.120.0030.0309.18
5.2.110.0060.0289.19
5.2.100.0060.0279.18
5.2.90.0050.0299.18
5.2.80.0060.0339.18
5.2.70.0050.0319.18
5.2.60.0050.0309.13
5.2.50.0050.0309.11
5.2.40.0040.0299.08
5.2.30.0060.0299.06
5.2.20.0060.0299.04
5.2.10.0030.0308.95
5.2.00.0080.0278.82
5.1.60.0060.0248.09
5.1.50.0060.0318.10
5.1.40.0050.0358.07
5.1.30.0070.0298.42
5.1.20.0050.0268.44
5.1.10.0050.0318.17
5.1.00.0100.0378.17
5.0.50.0120.0246.65
5.0.40.0080.0276.51
5.0.30.0090.0416.33
5.0.20.0090.0236.29
5.0.10.0080.0256.27
5.0.00.0050.0416.26
4.4.90.0040.0214.78
4.4.80.0060.0214.75
4.4.70.0050.0214.76
4.4.60.0040.0234.76
4.4.50.0050.0164.77
4.4.40.0040.0334.71
4.4.30.0060.0194.76
4.4.20.0080.0194.84
4.4.10.0050.0214.85
4.4.00.0090.0424.76
4.3.110.0060.0234.67
4.3.100.0020.0234.67
4.3.90.0040.0214.64
4.3.80.0030.0334.58
4.3.70.0010.0234.63
4.3.60.0010.0234.63
4.3.50.0030.0224.63
4.3.40.0030.0344.53
4.3.30.0010.0243.30
4.3.20.0020.0233.28
4.3.10.0050.0353.23
4.3.00.0070.0176.88

preferences:
51.87 ms | 400 KiB | 5 Q