3v4l.org

run code in 300+ PHP versions simultaneously
<?php $consts = get_defined_constants(); $consts = array_keys($consts); usort($consts, function($a, $b) { $aLen = strlen($a); $bLen = strlen($b); if ($aLen === $bLen) { return 0; } return $aLen < $bLen ? 1 : -1; }); foreach($consts as $const) { echo strlen($const) . ": " . $const . "\n"; }

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.0170.01016.88
8.3.50.0100.01017.98
8.3.40.0040.01822.13
8.3.30.0070.01418.84
8.3.20.0030.00624.18
8.3.10.0000.01024.66
8.3.00.0060.00326.16
8.2.180.0160.01025.92
8.2.170.0150.00718.96
8.2.160.0070.01022.96
8.2.150.0090.00025.66
8.2.140.0050.00524.66
8.2.130.0030.00626.16
8.2.120.0000.01719.66
8.2.110.0080.00421.04
8.2.100.0100.00317.84
8.2.90.0000.00917.84
8.2.80.0000.01019.29
8.2.70.0070.00418.16
8.2.60.0030.00618.22
8.2.50.0030.00618.10
8.2.40.0030.00721.05
8.2.30.0000.00919.45
8.2.20.0000.00918.21
8.2.10.0040.00719.28
8.2.00.0060.00319.25
8.1.280.0140.00725.92
8.1.270.0030.00723.99
8.1.260.0050.00526.35
8.1.250.0030.00628.09
8.1.240.0070.00322.37
8.1.230.0070.00722.74
8.1.220.0080.00518.68
8.1.210.0070.00420.38
8.1.200.0030.00717.48
8.1.190.0060.00317.36
8.1.180.0030.00618.10
8.1.170.0000.00918.55
8.1.160.0060.00319.22
8.1.150.0060.00618.91
8.1.140.0100.00017.64
8.1.130.0040.00417.50
8.1.120.0030.00917.66
8.1.110.0030.00617.65
8.1.100.0030.00617.48
8.1.90.0090.00017.50
8.1.80.0030.00917.60
8.1.70.0000.00817.53
8.1.60.0040.00817.74
8.1.50.0030.00717.64
8.1.40.0090.00017.70
8.1.30.0050.00517.87
8.1.20.0000.00917.76
8.1.10.0060.00617.60
8.1.00.0030.00617.53
8.0.300.0060.00321.96
8.0.290.0050.00517.00
8.0.280.0080.00018.54
8.0.270.0060.00316.96
8.0.260.0040.00417.05
8.0.250.0090.00017.22
8.0.240.0030.00717.23
8.0.230.0000.00817.21
8.0.220.0060.00317.15
8.0.210.0030.00617.21
8.0.200.0000.01017.11
8.0.190.0050.00516.98
8.0.180.0040.00417.08
8.0.170.0070.00317.09
8.0.160.0020.00817.08
8.0.150.0040.00416.96
8.0.140.0060.00316.89
8.0.130.0070.00013.46
8.0.120.0030.00717.01
8.0.110.0060.00316.96
8.0.100.0030.00717.06
8.0.90.0040.00516.95
8.0.80.0090.00817.02
8.0.70.0040.00417.12
8.0.60.0040.00516.96
8.0.50.0060.00316.98
8.0.30.0070.00817.17
8.0.20.0100.00817.09
8.0.10.0040.00417.09
8.0.00.0070.00916.98
7.4.330.0000.00615.55
7.4.320.0000.00716.66
7.4.300.0080.00016.72
7.4.290.0060.00316.61
7.4.280.0030.00616.69
7.4.270.0030.00616.78
7.4.260.0070.00013.27
7.4.250.0080.00016.78
7.4.240.0040.00416.82
7.4.230.0010.00716.70
7.4.220.0050.00316.79
7.4.210.0070.01116.78
7.4.200.0050.00516.75
7.4.190.0060.00316.65
7.4.180.0030.00616.53
7.4.160.0060.00316.88
7.4.150.0060.00316.71
7.4.140.0070.00316.67
7.4.130.0090.00916.51
7.4.120.0100.00916.53
7.4.110.0110.00716.22
7.4.100.0110.00716.71
7.4.90.0090.00816.49
7.4.80.0090.01016.42
7.4.70.0100.00716.56
7.4.60.0120.00816.46
7.4.50.0100.00616.50
7.4.40.0110.00716.41
7.4.30.0090.01016.50
7.4.20.0050.01116.38
7.4.10.0080.01116.57
7.4.00.0100.00516.58
7.3.330.0040.00416.55
7.3.320.0030.00313.23
7.3.310.0030.00616.53
7.3.300.0020.00616.50
7.3.290.0060.00616.55
7.3.280.0000.00816.48
7.3.270.0000.00816.47
7.3.260.0080.00916.52
7.3.250.0070.00916.51
7.3.240.0080.01016.55
7.3.230.0050.01216.44
7.3.220.0110.00816.41
7.3.210.0100.01016.43
7.3.200.0070.00916.45
7.3.190.0070.01316.46
7.3.180.0060.01116.44
7.3.170.0120.00616.52
7.3.160.0020.01316.36
7.3.150.0110.00816.66
7.3.140.0110.00516.37
7.3.130.0070.00716.52
7.3.120.0070.01116.38
7.3.110.0080.01016.33
7.3.100.0070.01116.53
7.3.90.0120.00916.72
7.3.80.0090.00916.53
7.3.70.0090.00916.39
7.3.60.0090.01016.55
7.3.50.0070.01316.40
7.3.40.0060.01016.49
7.3.30.0110.00716.48
7.3.20.0150.00917.42
7.3.10.0020.01517.30
7.3.00.0080.00817.27
5.6.400.0080.00619.49

preferences:
66.17 ms | 401 KiB | 5 Q