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.3.60.0140.00718.43
8.3.50.0040.01818.05
8.3.40.0080.00818.52
8.3.30.0000.01418.67
8.3.20.0040.00420.14
8.3.10.0080.00023.65
8.3.00.0060.00319.68
8.2.180.0190.00318.26
8.2.170.0060.01022.96
8.2.160.0110.00420.47
8.2.150.0030.00524.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0150.00019.61
8.2.110.0070.00421.02
8.2.100.0080.00317.78
8.2.90.0080.00017.84
8.2.80.0000.00817.97
8.2.70.0060.00318.05
8.2.60.0040.00418.05
8.2.50.0000.00818.22
8.2.40.0040.00420.50
8.2.30.0000.00819.23
8.2.20.0040.00418.11
8.2.10.0060.00318.04
8.2.00.0070.00018.32
8.1.280.0140.00725.92
8.1.270.0080.00022.14
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0040.00820.29
8.1.230.0060.00620.90
8.1.220.0040.00417.74
8.1.210.0060.00319.09
8.1.200.0030.00617.35
8.1.190.0040.00417.23
8.1.180.0070.00318.10
8.1.170.0000.00818.45
8.1.160.0080.00018.77
8.1.150.0000.00720.29
8.1.140.0030.00517.77
8.1.130.0000.00720.80
8.1.120.0040.00417.44
8.1.110.0040.00417.39
8.1.100.0040.00417.46
8.1.90.0000.00817.47
8.1.80.0040.00417.48
8.1.70.0070.00017.45
8.1.60.0070.00017.47
8.1.50.0070.00417.54
8.1.40.0000.00817.54
8.1.30.0000.00817.53
8.1.20.0070.00017.68
8.1.10.0000.00817.56
8.1.00.0000.00717.47
8.0.300.0070.00019.59
8.0.290.0030.00716.63
8.0.280.0060.00318.48
8.0.270.0070.00017.18
8.0.260.0030.00516.82
8.0.250.0030.00316.90
8.0.240.0050.00216.95
8.0.230.0030.00316.87
8.0.220.0040.00416.89
8.0.210.0030.00316.82
8.0.200.0000.00716.96
8.0.190.0000.00816.84
8.0.180.0020.00516.93
8.0.170.0030.00716.74
8.0.160.0070.00016.93
8.0.150.0070.00016.83
8.0.140.0000.00816.87
8.0.130.0000.00613.34
8.0.120.0000.00816.77
8.0.110.0050.00316.85
8.0.100.0000.00816.93
8.0.90.0000.00716.79
8.0.80.0090.00616.84
8.0.70.0040.00416.75
8.0.60.0020.00516.96
8.0.50.0030.00316.93
8.0.30.0080.01117.11
8.0.20.0110.00817.40
8.0.10.0050.00217.13
8.0.00.0080.01016.71
7.4.330.0000.00515.55
7.4.320.0060.00016.40
7.4.300.0060.00016.57
7.4.290.0000.00616.40
7.4.280.0070.00016.61
7.4.270.0060.00316.49
7.4.260.0030.00316.43
7.4.250.0030.00716.47
7.4.240.0000.00716.43
7.4.230.0000.00716.50
7.4.220.0070.00016.38
7.4.210.0100.00716.65
7.4.200.0000.00716.67
7.4.160.0090.00616.53
7.4.150.0100.00717.40
7.4.140.0130.00417.86
7.4.130.0110.00616.36
7.4.120.0110.01016.61
7.4.110.0090.00916.45
7.4.100.0140.00716.56
7.4.90.0140.00716.44
7.4.80.0090.01319.39
7.4.70.0070.01416.63
7.4.60.0040.01116.63
7.4.50.0090.00316.34
7.4.40.0070.01016.57
7.4.00.0090.00814.72
7.3.330.0050.00013.31
7.3.320.0030.00313.29
7.3.310.0070.00016.33
7.3.300.0070.00016.18
7.3.290.0050.00916.31
7.3.280.0060.01016.33
7.3.270.0060.01217.40
7.3.260.0100.01116.43
7.3.240.0110.00716.40
7.3.230.0070.01016.50
7.3.210.0000.01516.34
7.3.200.0140.00316.46
7.3.190.0150.00616.30
7.3.180.0000.01616.65
7.3.170.0130.00916.50
7.3.160.0110.00416.61
7.3.120.0110.01114.74
7.3.110.0070.01314.86
7.3.100.0030.01014.59
7.3.90.0040.01114.80
7.3.80.0000.01214.85
7.3.70.0090.00614.53
7.3.60.0000.01314.66
7.3.50.0090.00614.65
7.3.40.0030.01014.65
7.3.30.0090.00014.74
7.3.20.0070.00416.80
7.3.10.0060.00616.59
7.3.00.0050.01016.34
7.2.330.0100.00616.60
7.2.320.0100.00716.65
7.2.310.0090.01416.80
7.2.300.0110.01616.52
7.2.290.0100.00716.52
7.2.250.0040.01115.03
7.2.240.0090.00914.67
7.2.230.0030.00615.16
7.2.220.0000.01115.30
7.2.210.0030.01315.34
7.2.200.0040.01115.23
7.2.190.0030.01314.99
7.2.180.0080.00815.00
7.2.170.0060.01014.66
7.2.130.0060.00616.98
7.2.120.0060.00916.46
7.2.110.0080.00416.95
7.2.100.0040.00816.71
7.2.90.0030.01017.07
7.2.80.0080.00416.50
7.2.70.0030.01017.02
7.2.60.0080.00616.68
7.2.50.0110.01116.89
7.2.40.0150.00616.78
7.2.30.0030.00616.86
7.2.20.0100.01017.39
7.2.10.0140.00717.25
7.2.00.0640.01217.61
7.1.330.0040.01115.96
7.1.320.0070.00715.92
7.1.310.0030.00715.67
7.1.300.0080.00415.85
7.1.290.0030.01015.68
7.1.280.0040.00815.79
7.1.270.0090.00015.37
7.1.260.0000.01015.96
7.1.250.0040.00415.60
7.1.200.0030.01015.66
7.1.140.0190.01016.96
7.1.130.0070.01616.59
7.1.120.0130.01717.04
7.1.110.0230.01016.25
7.1.100.0190.01316.41
7.1.90.0140.01016.43
7.1.80.0160.01316.26
7.1.70.0150.00915.04
7.1.60.0240.01433.04
7.1.50.0200.02432.85
7.1.40.0230.01732.46
7.1.30.0240.01432.46
7.1.20.0330.01332.61
7.1.10.0140.00714.64
7.1.00.0180.00914.77

preferences:
61.69 ms | 401 KiB | 5 Q