3v4l.org

run code in 300+ PHP versions simultaneously
<?php const A = 'waa'; class A {} class B { public function __construct(A $a = null) { } public function test($a = A) { } } $r = new ReflectionMethod('B', 'test'); $p = $r->getParameters()[0]; var_dump($p->getName(), $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.60.0080.00816.75
8.3.50.0130.00522.01
8.3.40.0080.00618.59
8.3.30.0100.00318.95
8.3.20.0040.00420.14
8.3.10.0000.00723.66
8.3.00.0040.00420.97
8.2.180.0120.00318.29
8.2.170.0150.00622.96
8.2.160.0080.00820.49
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00020.72
8.2.110.0040.00422.02
8.2.100.0090.00317.72
8.2.90.0080.00019.21
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0040.00417.93
8.2.50.0000.00918.07
8.2.40.0050.00319.77
8.2.30.0000.00718.35
8.2.20.0040.00417.63
8.2.10.0030.00618.19
8.2.00.0000.00817.80
8.1.280.0110.00325.92
8.1.270.0050.00322.04
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0030.00623.87
8.1.230.0070.00319.18
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0090.00017.35
8.1.190.0060.00317.22
8.1.180.0040.00418.10
8.1.170.0060.00318.66
8.1.160.0040.00422.01
8.1.150.0000.00918.68
8.1.140.0000.00717.38
8.1.130.0030.00317.74
8.1.120.0000.00817.46
8.1.110.0040.00417.46
8.1.100.0040.00417.48
8.1.90.0000.00817.37
8.1.80.0080.00017.44
8.1.70.0070.00017.37
8.1.60.0090.00317.58
8.1.50.0080.00017.49
8.1.40.0030.00617.38
8.1.30.0000.00817.63
8.1.20.0060.00317.50
8.1.10.0040.00417.52
8.1.00.0040.00417.45
8.0.300.0040.00418.77
8.0.290.0040.00416.93
8.0.280.0000.00718.43
8.0.270.0030.00317.18
8.0.260.0030.00617.21
8.0.250.0040.00416.86
8.0.240.0050.00216.95
8.0.230.0030.00316.95
8.0.220.0000.00716.79
8.0.210.0000.00716.81
8.0.200.0000.00616.92
8.0.190.0050.00316.96
8.0.180.0050.00516.93
8.0.170.0060.00316.90
8.0.160.0030.00417.00
8.0.150.0080.00016.92
8.0.140.0030.00716.90
8.0.130.0060.00013.36
8.0.120.0040.00416.75
8.0.110.0040.00416.92
8.0.100.0000.00916.91
8.0.90.0020.00516.96
8.0.80.0090.01216.95
8.0.70.0040.00416.89
8.0.60.0020.00516.91
8.0.50.0040.00416.85
8.0.30.0140.00916.96
8.0.20.0120.00617.40
8.0.10.0000.00717.06
8.0.00.0060.01316.72
7.4.330.0000.00515.00
7.4.320.0000.00616.61
7.4.300.0030.00316.52
7.4.290.0000.00716.50
7.4.280.0080.00016.64
7.4.270.0000.00816.41
7.4.260.0070.00016.51
7.4.250.0040.00416.52
7.4.240.0030.00516.62
7.4.230.0030.00316.66
7.4.220.0070.01016.45
7.4.210.0060.01116.60
7.4.200.0000.00716.66
7.4.190.0040.00416.69
7.4.160.0060.01116.58
7.4.150.0090.00917.40
7.4.140.0120.00917.86
7.4.130.0070.00916.44
7.4.120.0140.00316.48
7.4.110.0090.00916.47
7.4.100.0100.00716.30
7.4.90.0090.00916.54
7.4.80.0110.00619.39
7.4.70.0160.00316.68
7.4.60.0120.00916.34
7.4.50.0060.00316.35
7.4.40.0070.01116.28
7.4.30.0140.00316.48
7.4.00.0000.01214.99
7.3.330.0020.00213.14
7.3.320.0060.00013.30
7.3.310.0050.00316.21
7.3.300.0030.00316.21
7.3.290.0090.00916.30
7.3.280.0080.01016.31
7.3.270.0110.00617.40
7.3.260.0120.00916.52
7.3.250.0140.00316.31
7.3.240.0090.00916.45
7.3.230.0110.00616.39
7.3.210.0110.01216.49
7.3.200.0120.01219.39
7.3.190.0070.01116.45
7.3.180.0000.01616.45
7.3.170.0030.01416.57
7.3.160.0030.01316.31
7.3.120.0120.00314.76
7.2.330.0060.01216.57
7.2.320.0150.00316.72
7.2.310.0000.01716.40
7.2.300.0100.00716.66
7.2.290.0070.01116.50
7.2.80.0060.00616.55
7.2.00.0030.01219.20
7.1.200.0040.01115.70
7.1.100.0000.01218.04
7.1.70.0060.00317.16
7.1.60.0000.02419.46
7.1.50.0030.01716.71
7.1.00.0000.08022.32
7.0.200.0110.00316.48
7.0.140.0030.07322.07
7.0.110.0630.09320.09
7.0.100.0570.07319.97
7.0.90.0500.07720.00
7.0.80.0500.05719.96
7.0.70.0600.07320.03
7.0.60.0530.08719.93
7.0.50.0530.07720.51
7.0.40.0000.07720.03
7.0.30.0100.08320.04
7.0.20.0100.07720.25
7.0.10.0070.08020.25
7.0.00.0170.07020.26
5.6.280.0000.07720.79
5.6.260.0170.07720.60
5.6.250.0070.07320.51
5.6.240.0070.05020.57
5.6.230.0100.07320.71
5.6.220.0070.08020.55
5.6.210.0100.07720.57
5.6.200.0170.07320.94
5.6.190.0170.07721.00
5.6.180.0100.07720.96
5.6.170.0100.07321.15
5.6.160.0070.06021.22
5.6.150.0070.07721.07
5.6.140.0030.09321.19
5.6.130.0030.05721.22
5.6.120.0100.07721.29
5.6.110.0000.07720.93
5.6.100.0130.07321.21
5.6.90.0130.08020.94
5.6.80.0130.07320.66
5.6.70.0200.06320.41
5.6.60.0030.08020.57
5.6.50.0030.07720.47
5.6.40.0100.08020.65
5.6.30.0070.08320.35
5.6.20.0000.08020.55
5.6.10.0000.07020.57
5.6.00.0130.05720.37
5.5.380.0000.09020.33
5.5.370.0070.08020.24
5.5.360.0070.08320.56
5.5.350.0070.07720.52
5.5.340.0130.07720.79
5.5.330.0130.07720.96
5.5.320.0170.06320.82
5.5.310.0130.05020.91
5.5.300.0030.08321.04
5.5.290.0070.08020.79
5.5.280.0000.05720.91
5.5.270.0100.08020.95
5.5.260.0070.08720.90
5.5.250.0100.07320.80
5.5.240.0030.08020.23
5.5.230.0130.07020.32
5.5.220.0230.06320.39
5.5.210.0030.07320.29
5.5.200.0070.03320.30
5.5.190.0170.06720.32
5.5.180.0070.05020.20
5.5.160.0070.04720.05
5.5.150.0100.07020.16
5.5.140.0000.08320.39
5.5.130.0070.08020.37
5.5.120.0070.08020.24
5.5.110.0070.07320.30
5.5.100.0030.08720.05
5.5.90.0130.07320.05
5.5.80.0100.07320.00
5.5.70.0070.06720.09
5.5.60.0070.04319.97
5.5.50.0100.07020.01
5.5.40.0070.03719.97
5.5.30.0100.07020.23
5.5.20.0200.06319.98
5.5.10.0070.08020.13
5.5.00.0130.06720.06
5.4.450.0100.08019.52
5.4.440.0070.07719.33
5.4.430.0100.08019.46
5.4.420.0100.06319.46
5.4.410.0130.06719.38
5.4.400.0030.08019.04
5.4.390.0070.07319.03
5.4.380.0070.07719.31
5.4.370.0100.04019.18
5.4.360.0030.07719.00
5.4.350.0100.06719.14
5.4.340.0070.04718.98
5.4.320.0170.06319.14
5.4.310.0070.07019.01
5.4.300.0070.07719.18
5.4.290.0070.07719.00
5.4.280.0030.08319.19
5.4.270.0070.04319.33
5.4.260.0100.06019.22
5.4.250.0030.08318.98
5.4.240.0100.07019.00
5.4.230.0070.07319.17
5.4.220.0030.07719.30
5.4.210.0130.07019.00
5.4.200.0100.07318.98
5.4.190.0000.08019.00
5.4.180.0100.07018.97
5.4.170.0100.06319.23
5.4.160.0070.07318.92
5.4.150.0070.07718.98
5.4.140.0030.08016.38
5.4.130.0100.06316.58
5.4.120.0130.06316.52
5.4.110.0100.06316.63
5.4.100.0030.04316.52
5.4.90.0100.07016.46
5.4.80.0030.05016.51
5.4.70.0070.07016.49
5.4.60.0070.07716.34
5.4.50.0100.07016.63
5.4.40.0130.06316.59
5.4.30.0070.07016.40
5.4.20.0030.07316.28
5.4.10.0200.05716.38
5.4.00.0130.05715.98
5.3.290.0030.09014.67
5.3.280.0100.07714.83
5.3.270.0170.07314.75
5.3.260.0070.06714.61
5.3.250.0070.04714.64
5.3.240.0100.04714.84
5.3.230.0070.07314.62
5.3.220.0030.05314.71
5.3.210.0030.08314.71
5.3.200.0070.06714.81
5.3.190.0200.05314.53
5.3.180.0100.07314.52
5.3.170.0170.06714.65
5.3.160.0170.06714.66
5.3.150.0070.07714.56
5.3.140.0030.08314.65
5.3.130.0100.07714.55
5.3.120.0030.08014.41
5.3.110.0030.06314.50
5.3.100.0030.06314.04
5.3.90.0030.07314.16
5.3.80.0100.07314.02
5.3.70.0070.05714.17
5.3.60.0030.05714.04
5.3.50.0070.04313.96
5.3.40.0030.07714.09
5.3.30.0100.06714.04
5.3.20.0200.06013.68
5.3.10.0130.05713.66
5.3.00.0130.06713.73
5.2.170.0000.06011.82
5.2.160.0030.06711.82
5.2.150.0030.05711.82
5.2.140.0070.06311.82
5.2.130.0130.05311.82
5.2.120.0030.06311.82
5.2.110.0030.06011.82
5.2.100.0100.05011.82
5.2.90.0070.05311.82
5.2.80.0070.03711.82
5.2.70.0030.06011.82
5.2.60.0070.05311.82
5.2.50.0030.05311.82
5.2.40.0070.05711.82
5.2.30.0030.06011.82
5.2.20.0000.06011.82
5.2.10.0030.06011.82
5.2.00.0030.05711.82
5.1.60.0000.05311.82
5.1.50.0070.05011.82
5.1.40.0100.04311.82
5.1.30.0000.06011.82
5.1.20.0070.05311.82
5.1.10.0030.05011.82
5.1.00.0070.04011.82
5.0.50.0000.04711.82
5.0.40.0100.04011.82
5.0.30.0100.03011.82
5.0.20.0030.04711.82
5.0.10.0030.04311.82
5.0.00.0100.05311.82
4.4.90.0030.03311.82
4.4.80.0000.03711.82
4.4.70.0000.03311.82
4.4.60.0030.03311.82
4.4.50.0000.03711.82
4.4.40.0100.04711.82
4.4.30.0030.03311.82
4.4.20.0000.03711.82
4.4.10.0030.03311.82
4.4.00.0030.05311.82
4.3.110.0030.03311.82
4.3.100.0030.03311.82
4.3.90.0000.03311.82
4.3.80.0100.04711.82
4.3.70.0030.03011.82
4.3.60.0030.03011.82
4.3.50.0030.03311.82
4.3.40.0030.04711.82
4.3.30.0000.03711.82
4.3.20.0000.02011.82
4.3.10.0000.03711.82
4.3.00.0000.03311.82

preferences:
66.45 ms | 401 KiB | 5 Q