3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace { define('SOME_CONSTANT', 1); } namespace Some\Name\Space { use ReflectionFunction; $reflection = new ReflectionFunction(function ($const = PHP_EOL, $const2 = SOME_CONSTANT) { }); echo $reflection->getParameters()[0]->getDefaultValueConstantName() . PHP_EOL; echo $reflection->getParameters()[1]->getDefaultValueConstantName() . PHP_EOL; }

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.1.130.0070.00017.37
8.1.120.0080.00017.38
8.1.110.0040.00417.50
8.1.100.0000.00817.47
8.1.90.0080.00017.44
8.1.80.0080.00017.37
8.1.70.0030.00317.50
8.1.60.0070.00017.54
8.1.50.0030.00517.51
8.1.40.0060.00317.45
8.1.30.0000.00817.57
8.1.20.0000.00717.65
8.1.10.0040.00417.52
8.1.00.0000.00817.49
8.0.260.0070.00016.82
8.0.250.0030.00316.82
8.0.240.0000.00916.93
8.0.230.0070.00016.91
8.0.220.0040.00416.84
8.0.210.0000.00716.93
8.0.200.0000.00716.96
8.0.190.0030.00616.97
8.0.180.0000.00816.90
8.0.170.0040.00416.81
8.0.160.0040.00416.79
8.0.150.0070.00016.76
8.0.140.0070.00016.87
8.0.130.0000.00613.36
8.0.120.0040.00416.75
8.0.110.0050.00216.83
8.0.100.0040.00416.88
8.0.90.0000.00716.72
8.0.80.0000.01316.89
8.0.70.0000.00716.84
8.0.60.0000.00916.69
8.0.50.0000.00716.70
8.0.30.0080.00817.01
8.0.20.0100.00817.41
8.0.10.0040.00416.96
8.0.00.0100.00716.68
7.4.330.0020.00215.55
7.4.320.0030.00316.58
7.4.300.0040.00416.52
7.4.290.0070.00016.59
7.4.280.0040.00416.62
7.4.270.0000.00616.43
7.4.260.0100.00016.43
7.4.250.0070.00016.57
7.4.240.0000.00816.56
7.4.230.0050.00316.55
7.4.220.0100.01016.44
7.4.210.0100.00916.45
7.4.200.0030.00316.68
7.4.160.0130.00416.60
7.4.150.0150.00317.40
7.4.140.0110.00917.86
7.4.130.0090.00816.54
7.4.120.0090.00816.57
7.4.110.0130.00316.57
7.4.100.0030.01316.37
7.4.90.0060.01216.57
7.4.80.0080.00919.39
7.4.70.0070.01016.49
7.4.60.0040.01216.58
7.4.50.0060.00916.56
7.4.40.0110.00616.62
7.4.30.0080.00816.69
7.4.00.0040.00415.05
7.3.330.0000.00513.21
7.3.320.0040.00413.30
7.3.310.0030.00316.15
7.3.300.0000.00716.27
7.3.290.0030.01016.29
7.3.280.0080.00916.30
7.3.270.0070.01517.40
7.3.260.0080.00916.49
7.3.250.0100.00716.51
7.3.240.0140.00516.48
7.3.230.0000.01716.39
7.3.210.0030.01416.31
7.3.200.0120.00916.36
7.3.190.0050.01116.36
7.3.180.0100.01016.52
7.3.170.0120.01116.51
7.3.160.0070.01016.50
7.2.330.0100.01016.49
7.2.320.0100.00916.76
7.2.310.0070.01016.86
7.2.300.0130.00416.78
7.2.290.0060.01216.61
7.2.60.0090.00316.93
7.2.20.0110.01119.71
7.2.10.0110.00919.68
7.2.00.0060.01619.82
7.1.200.0030.01015.62
7.1.140.0080.01418.52
7.1.130.0080.01118.71
7.1.120.0090.01018.61
7.1.110.0070.01218.05
7.1.100.0100.00917.76
7.1.90.0080.01317.99
7.1.80.0080.01017.60
7.1.70.0070.00717.12
7.1.60.0220.01026.23
7.1.50.0290.01834.52
7.1.40.0230.01434.54
7.1.30.0260.01334.26
7.1.20.0250.01134.48
7.1.10.0090.01016.58
7.1.00.0060.04419.62
7.0.270.0080.01018.16
7.0.260.0090.00818.41
7.0.250.0100.01017.70
7.0.240.0080.01217.51
7.0.230.0070.00917.55
7.0.220.0090.01217.27
7.0.210.0110.00916.28
7.0.200.0210.00915.74
7.0.190.0070.01416.74
7.0.180.0080.00916.30
7.0.170.0040.01416.14
7.0.160.0040.01316.00
7.0.150.0080.00716.14
7.0.140.0060.01016.30
7.0.130.0060.03519.29
7.0.120.0090.03119.16
7.0.110.0080.03419.23
7.0.100.0050.03919.34
7.0.90.0050.03819.11
7.0.80.0050.03619.21
7.0.70.0090.03519.20
7.0.60.0070.03518.98
7.0.50.0080.03919.17
7.0.40.0130.03019.32
7.0.30.0070.03519.17
7.0.20.0080.03319.21
7.0.10.0030.03919.28
7.0.00.0090.03519.17
5.6.300.0200.06320.61
5.6.290.0180.05520.85
5.6.280.0120.05820.88
5.6.270.0130.06920.96
5.6.260.0150.06920.93
5.6.250.0110.06421.02
5.6.240.0090.07320.83
5.6.230.0180.06621.00
5.6.220.0180.06020.97
5.6.210.0140.05620.97
5.6.200.0150.06421.02
5.6.190.0170.08220.89
5.6.180.0230.05720.81
5.6.170.0170.06220.79
5.6.160.0100.07220.75
5.6.150.0120.07121.05
5.6.140.0170.06620.96
5.6.130.0150.05520.92
5.6.120.0130.05920.88
5.6.110.0170.05620.94
5.6.100.0110.06820.82
5.6.90.0110.05920.89
5.6.80.0100.06020.17
5.6.70.0150.06420.33
5.6.60.0230.05820.22
5.6.50.0150.06520.28
5.6.40.0150.05520.28
5.6.30.0110.05920.26
5.6.20.0150.06620.29
5.6.10.0170.04920.37
5.6.00.0140.05320.20

preferences:
13.88 ms | 406 KiB | 5 Q