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]->getDefaultValue() . 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.00020.80
8.1.120.0000.00717.54
8.1.110.0000.00817.48
8.1.100.0030.00517.50
8.1.90.0000.00817.43
8.1.80.0050.00317.35
8.1.70.0000.00817.41
8.1.60.0000.00817.56
8.1.50.0070.00317.41
8.1.40.0060.00317.56
8.1.30.0060.00317.49
8.1.20.0000.00917.49
8.1.10.0040.00417.59
8.1.00.0080.00017.50
8.0.260.0070.00016.74
8.0.250.0000.00716.80
8.0.240.0050.00216.94
8.0.230.0040.00416.93
8.0.220.0070.00016.87
8.0.210.0000.00716.75
8.0.200.0030.00316.96
8.0.190.0000.00716.86
8.0.180.0050.00216.80
8.0.170.0060.00316.90
8.0.160.0000.00716.87
8.0.150.0000.00716.89
8.0.140.0000.00716.79
8.0.130.0030.00313.29
8.0.120.0000.00816.90
8.0.110.0000.00816.92
8.0.100.0000.00716.87
8.0.90.0070.00016.69
8.0.80.0060.00916.89
8.0.70.0000.00816.77
8.0.60.0050.00316.93
8.0.50.0040.00416.79
8.0.30.0110.00716.94
8.0.20.0110.00717.41
8.0.10.0050.00216.79
8.0.00.0150.00516.79
7.4.330.0050.00015.55
7.4.320.0060.00016.55
7.4.300.0000.00616.57
7.4.290.0000.00716.59
7.4.280.0030.00316.48
7.4.270.0030.00316.49
7.4.260.0080.00016.57
7.4.250.0070.00316.56
7.4.240.0000.00716.39
7.4.230.0070.00016.41
7.4.220.0000.00716.68
7.4.210.0070.01116.59
7.4.200.0030.00316.30
7.4.160.0100.00716.56
7.4.150.0090.00917.40
7.4.140.0100.00917.86
7.4.130.0090.00916.56
7.4.120.0110.00616.58
7.4.110.0130.00516.48
7.4.100.0080.00816.61
7.4.90.0080.00816.36
7.4.80.0200.00319.39
7.4.70.0070.01016.44
7.4.60.0070.00916.44
7.4.50.0070.01116.70
7.4.40.0110.00616.39
7.4.00.0090.00314.65
7.3.330.0000.00513.14
7.3.320.0030.00313.13
7.3.310.0070.00016.15
7.3.300.0000.00716.27
7.3.290.0070.00016.19
7.3.280.0090.00916.29
7.3.270.0090.01517.40
7.3.260.0100.00816.53
7.3.240.0090.00816.38
7.3.230.0130.00316.33
7.3.210.0170.00016.18
7.3.200.0070.01016.57
7.3.190.0120.00916.29
7.3.180.0120.00316.45
7.3.170.0000.01516.24
7.3.160.0090.00616.35
7.3.10.0050.00716.65
7.3.00.0030.00916.71
7.2.330.0110.01116.39
7.2.320.0160.00716.93
7.2.310.0060.01216.61
7.2.300.0000.00216.82
7.2.290.0120.00616.59
7.2.130.0110.00317.01
7.2.120.0100.00516.85
7.2.110.0070.00516.88
7.2.100.0110.00016.87
7.2.90.0090.00516.97
7.2.80.0030.01216.85
7.2.70.0070.00716.82
7.2.60.0070.00617.02
7.2.50.0070.00516.97
7.2.40.0070.00617.05
7.2.30.0080.00616.96
7.2.20.0140.00717.17
7.2.10.0140.00517.19
7.2.00.0080.01217.34
7.1.250.0020.00815.55
7.1.200.0000.01415.75
7.1.140.0230.00816.83
7.1.130.0140.01516.58
7.1.120.0270.00716.63
7.1.110.0120.01216.36
7.1.100.0120.00915.84
7.1.90.0240.00916.29
7.1.80.0190.00616.34
7.1.70.0140.01015.19
7.1.60.1000.01033.26
7.1.50.0330.01732.78
7.1.40.0490.00332.53
7.1.30.0440.00732.50
7.1.20.0320.02132.88
7.1.10.0160.01714.50
7.1.00.0200.01014.86

preferences:
60.05 ms | 406 KiB | 5 Q