3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Rofl\Quack{ const BAR = "bar"; } namespace Bar\Qux{ use const \Rofl\Quack\BAR; const FOO = 1; function whatever( int $p0 = FOO, int $p1 = BAR, string $p2 = \Rofl\Quack\BAR . 'lit' ){} } namespace{ $RF = new ReflectionFunction(\Bar\Qux\whatever::CLASS); var_dump($RF->getParameters()[0]->getDefaultValueConstantName()); var_dump($RF->getParameters()[1]->getDefaultValueConstantName()); var_dump($RF->getParameters()[2]->getDefaultValueConstantName()); }

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.4.130.0070.00218.01
8.4.120.0100.00824.34
8.4.110.0120.00821.52
8.4.100.0070.00318.55
8.4.90.0090.00618.65
8.4.80.0030.00520.58
8.4.70.0090.01318.11
8.4.60.0090.01118.86
8.4.50.0100.00618.62
8.4.40.0130.00719.48
8.4.30.0130.00717.70
8.4.20.0040.01817.94
8.4.10.0110.00919.48
8.3.260.0120.00817.16
8.3.250.0090.00918.81
8.3.240.0100.00917.41
8.3.230.0090.00616.57
8.3.220.0060.00218.85
8.3.210.0110.00816.63
8.3.200.0050.00416.52
8.3.190.0130.00617.29
8.3.180.0070.00217.21
8.3.170.0040.01422.75
8.3.160.0090.00017.18
8.3.150.0100.01017.18
8.3.140.0150.00416.42
8.3.130.0060.00318.29
8.3.120.0000.00919.06
8.3.110.0090.00020.94
8.3.100.0060.00318.30
8.3.90.0090.00026.77
8.3.80.0040.00817.97
8.3.70.0070.01118.08
8.3.60.0140.00718.18
8.3.50.0120.00821.98
8.3.40.0140.00718.46
8.3.30.0070.00718.68
8.3.20.0040.00420.90
8.3.10.0000.00823.62
8.3.00.0050.00319.26
8.2.290.0100.00920.47
8.2.280.0110.00818.21
8.2.270.0090.00917.05
8.2.260.0040.01516.84
8.2.250.0040.00418.42
8.2.240.0030.00717.39
8.2.230.0070.01022.58
8.2.220.0040.00424.06
8.2.210.0110.00426.77
8.2.200.0040.01118.26
8.2.190.0120.00316.75
8.2.180.0150.00616.50
8.2.170.0070.00722.96
8.2.160.0060.01219.04
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0040.00421.05
8.2.110.0060.00321.00
8.2.100.0110.00017.91
8.2.90.0080.00017.84
8.2.80.0050.00317.97
8.2.70.0060.00317.93
8.2.60.0050.00317.93
8.2.50.0000.00818.10
8.2.40.0090.00020.18
8.2.30.0020.00519.21
8.2.20.0000.00718.19
8.2.10.0050.00318.19
8.2.00.0040.00417.65
8.1.330.0070.01222.11
8.1.320.0130.00616.03
8.1.310.0050.00316.76
8.1.300.0190.00320.33
8.1.290.0040.00430.84
8.1.280.0060.01525.92
8.1.270.0040.00420.28
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00323.91
8.1.230.0110.00021.03
8.1.220.0000.00817.78
8.1.210.0040.00418.98
8.1.200.0090.00017.25
8.1.190.0080.00317.25
8.1.180.0050.00318.10
8.1.170.0080.00020.66
8.1.160.0040.00418.77
8.1.150.0000.01020.12
8.1.140.0000.00819.50
8.1.130.0030.00318.98
8.1.120.0040.00417.43
8.1.110.0070.00017.40
8.1.100.0000.00717.30
8.1.90.0000.00817.46
8.1.80.0040.00417.37
8.1.70.0000.00717.44
8.1.60.0040.00417.56
8.1.50.0030.00617.43
8.1.40.0040.00417.41
8.1.30.0000.00817.56
8.1.20.0080.00017.70
8.1.10.0000.00717.51
8.1.00.0000.00817.52
8.0.300.0000.00919.77
8.0.290.0040.00416.63
8.0.280.0030.00318.39
8.0.270.0050.00316.83
8.0.260.0030.00317.20
8.0.250.0070.00016.91
8.0.240.0000.00716.92
8.0.230.0030.00316.98
8.0.220.0030.00316.78
8.0.210.0070.00016.87
8.0.200.0030.00616.83
8.0.190.0000.00816.84
8.0.180.0050.00216.94
8.0.170.0050.00216.93
8.0.160.0000.00716.96
8.0.150.0000.00716.90
8.0.140.0080.00316.84
8.0.130.0050.00213.32
8.0.120.0050.00216.75
8.0.110.0040.00416.96
8.0.100.0040.00416.92
8.0.90.0070.00016.92
8.0.80.0170.00416.87
8.0.70.0080.00016.86
8.0.60.0040.00416.93
8.0.50.0040.00416.85
8.0.30.0120.00617.03
8.0.20.0140.00717.40
8.0.10.0000.00717.12
8.0.00.0170.00016.69
7.4.330.0050.00015.55
7.4.320.0060.00016.54
7.4.300.0030.00316.65
7.4.290.0030.00716.53
7.4.280.0030.00516.56
7.4.270.0030.00316.52
7.4.260.0000.00716.36
7.4.250.0050.00316.52
7.4.240.0030.00316.52
7.4.230.0070.00016.36
7.4.220.0070.01016.49
7.4.210.0090.00616.61
7.4.200.0000.00716.58
7.4.160.0110.00516.53
7.4.150.0180.00317.40
7.4.140.0070.01017.86
7.4.130.0090.00816.56
7.4.120.0100.00716.60
7.4.110.0040.01416.67
7.4.100.0080.00816.43
7.4.90.0090.00916.59
7.4.80.0100.01419.39
7.4.70.0090.00916.49
7.4.60.0030.01316.65
7.4.50.0130.00016.41
7.4.40.0120.01116.54
7.4.30.0090.01216.55
7.4.00.0110.00415.09
7.3.330.0030.00313.26
7.3.320.0020.00213.07
7.3.310.0000.00716.45
7.3.300.0000.00616.33
7.3.290.0090.00616.31
7.3.280.0080.01016.32
7.3.270.0060.01217.40
7.3.260.0080.01216.32
7.3.250.0080.00916.40
7.3.240.0110.00616.41
7.3.230.0100.00716.52
7.3.210.0110.01116.41
7.3.200.0140.00919.39
7.3.190.0070.01016.43
7.3.180.0130.00316.35
7.3.170.0100.00616.31
7.3.160.0030.01316.39
7.3.10.0080.00816.41
7.3.00.0110.00716.43
7.2.330.0110.01416.61
7.2.320.0030.01316.38
7.2.310.0070.01116.70
7.2.300.0140.00616.45
7.2.290.0100.00716.69
7.2.130.0120.00716.51
7.2.120.0130.00816.47
7.2.110.0120.00916.45
7.2.100.0060.00916.58
7.2.90.0180.00916.52
7.2.80.0100.01116.42
7.2.70.0140.00816.65
7.2.60.0120.00916.49
7.2.50.0120.01116.66
7.2.40.0070.01416.54
7.2.30.0170.00616.24
7.2.20.0100.01116.58
7.2.10.0080.01016.45
7.2.00.0060.01117.70
7.1.250.0080.01115.43
7.1.200.0040.00415.70
7.1.100.0000.01617.60
7.1.70.0040.00416.81
7.1.60.0070.00317.21
7.1.50.0030.01916.57
7.1.00.0830.05020.64
7.0.200.0030.01416.35
7.0.140.0870.05320.35
7.0.130.0770.07020.33
7.0.120.0770.05720.43
7.0.110.0730.05720.36
7.0.100.0630.06320.13
7.0.90.0930.07020.36
7.0.80.0930.05720.39
7.0.70.0900.05320.23
7.0.60.0700.06020.27
7.0.50.0770.05320.37
7.0.40.1730.06720.37
7.0.30.0630.06020.35
7.0.20.0670.05720.30
7.0.10.1200.07720.34
7.0.00.0670.05720.20
5.6.290.0200.05020.78
5.6.280.0170.04721.09
5.6.270.0030.06320.91
5.6.260.0170.04721.10
5.6.250.0030.06321.09
5.6.240.0170.05321.03
5.6.230.0130.05721.06
5.6.220.0100.06020.76
5.6.210.0100.06020.93
5.6.200.0170.05721.07
5.6.190.0170.05320.85
5.6.180.0130.05720.75
5.6.170.0100.07021.08
5.6.160.0070.07320.81
5.6.150.0070.06321.04
5.6.140.0070.06720.85
5.6.130.0130.05320.82
5.6.120.0070.06320.82
5.6.110.0070.06721.03
5.6.100.0100.06020.87
5.6.90.0200.07020.87
5.6.80.0230.04020.41
5.6.70.0100.05720.11
5.6.60.0230.06720.24
5.6.50.0030.06020.27
5.6.40.0230.05320.39
5.6.30.0130.05320.26
5.6.20.0030.07320.09
5.6.10.0170.06020.24
5.6.00.0030.06720.47

preferences:
31.54 ms | 403 KiB | 5 Q