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"; }

Abusive script

This script was stopped while abusing our resources

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.110.0000.01016.89
8.3.100.0100.01416.62
8.3.90.0070.00316.77
8.3.80.0030.00930.84
8.3.70.0180.00917.88
8.3.60.0150.01017.65
8.3.50.0150.00822.40
8.3.40.0180.01420.05
8.3.30.0220.01018.40
8.3.20.0150.01321.08
8.3.10.0180.00821.32
8.3.00.0190.00322.06
8.2.230.0060.00320.94
8.2.220.0100.00037.54
8.2.210.0090.00026.77
8.2.200.0050.00530.84
8.2.190.0140.01218.25
8.2.180.0250.01121.95
8.2.170.0220.00918.46
8.2.160.0150.00720.47
8.2.150.0130.00421.82
8.2.140.0140.00421.32
8.2.130.0120.00522.06
8.2.120.0100.01218.81
8.2.110.0160.00319.51
8.2.100.0170.00517.91
8.2.90.0100.00917.91
8.2.80.0110.00918.63
8.2.70.0110.00618.06
8.2.60.0060.00618.09
8.2.50.0100.00718.03
8.2.40.0110.00519.51
8.2.30.0080.00818.71
8.2.20.0090.00718.09
8.2.10.0110.00718.62
8.2.00.0160.00418.61
8.1.290.0080.00330.84
8.1.280.0160.00721.95
8.1.270.0110.00820.98
8.1.260.0110.00522.16
8.1.250.0160.00523.03
8.1.240.0070.01020.17
8.1.230.0150.00420.35
8.1.220.0100.00518.50
8.1.210.0130.00319.17
8.1.200.0110.00517.72
8.1.190.0110.00417.66
8.1.180.0130.00618.03
8.1.170.0160.00818.26
8.1.160.0200.00518.60
8.1.150.0130.01018.44
8.1.140.0190.00517.80
8.1.130.0190.00617.73
8.1.120.0220.00817.81
8.1.110.0150.00817.81
8.1.100.0150.00717.73
8.1.90.0130.00217.73
8.1.80.0100.00717.78
8.1.70.0080.00717.75
8.1.60.0130.00417.85
8.1.50.0110.00517.80
8.1.40.0140.00117.83
8.1.30.0110.00617.92
8.1.20.0090.00817.86
8.1.10.0120.00617.79
8.1.00.0150.00317.75
8.0.300.0110.00619.96
8.0.290.0140.00517.48
8.0.280.0210.00218.25
8.0.270.0210.00417.47
8.0.260.0200.00517.51
8.0.250.0160.00817.66
8.0.240.0150.00917.60
8.0.230.0120.01217.59
8.0.220.0200.00417.56
8.0.210.0150.00517.59
8.0.200.0070.00917.54
8.0.190.0120.00617.48
8.0.180.0090.00617.53
8.0.170.0100.00617.53
8.0.160.0070.00617.30
8.0.150.0120.00417.46
8.0.140.0130.00317.43
8.0.130.0120.00315.72
8.0.120.0110.00517.49
8.0.110.0100.00517.46
8.0.100.0080.00617.36
8.0.90.0080.00517.09
8.0.80.0150.00817.25
8.0.70.0130.00417.40
8.0.60.0130.00617.29
8.0.50.0140.00817.31
8.0.30.0140.01117.44
8.0.20.0130.00917.38
8.0.10.0110.00317.38
8.0.00.0100.00817.31
7.4.330.0100.00416.76
7.4.320.0080.00717.32
7.4.300.0120.00417.34
7.4.290.0120.00517.29
7.4.280.0120.00317.33
7.4.270.0070.00717.37
7.4.260.0110.00415.62
7.4.250.0130.00417.37
7.4.240.0120.00517.39
7.4.230.0070.01017.12
7.4.220.0090.00517.09
7.4.210.0100.00916.97
7.4.200.0100.00417.16
7.4.190.0180.00217.31
7.4.180.0140.00917.25
7.4.160.0230.00617.42
7.4.150.0170.01017.34
7.4.140.0160.00717.32
7.4.130.0150.00716.99
7.4.120.0160.01017.01
7.4.110.0170.00816.80
7.4.100.0200.00617.13
7.4.90.0120.00616.98
7.4.80.0130.00916.94
7.4.70.0110.00817.03
7.4.60.0130.00716.96
7.4.50.0130.00516.99
7.4.40.0120.00716.93
7.4.30.0110.00916.99
7.4.20.0080.00916.91
7.4.10.0110.00817.04
7.4.00.0120.00416.86
7.3.330.0140.00617.26
7.3.320.0120.00715.60
7.3.310.0120.00717.25
7.3.300.0090.00816.99
7.3.290.0130.00817.03
7.3.280.0180.00617.22
7.3.270.0130.00917.22
7.3.260.0150.00817.00
7.3.250.0150.00816.99
7.3.240.0180.01017.02
7.3.230.0130.01116.95
7.3.220.0130.00916.93
7.3.210.0120.00816.95
7.3.200.0110.00816.96
7.3.190.0120.01016.97
7.3.180.0100.00816.95
7.3.170.0130.00617.00
7.3.160.0050.01216.90
7.3.150.0120.00617.09
7.3.140.0150.00416.90
7.3.130.0130.00717.00
7.3.120.0130.01016.91
7.3.110.0150.00916.88
7.3.100.0140.00817.01
7.3.90.0190.00917.14
7.3.80.0150.00717.01
7.3.70.0130.00816.92
7.3.60.0110.01017.02
7.3.50.0090.01216.92
7.3.40.0090.00916.98
7.3.30.0130.00616.97
7.3.20.0140.00817.66
7.3.10.0070.01117.53
7.3.00.0100.00717.52
7.2.340.0080.01217.97
7.2.330.0190.00517.97
7.2.320.0180.00617.97
7.2.310.0210.00317.97
7.2.300.0190.00417.97
7.2.290.0150.00617.97
7.2.280.0210.00017.97
7.2.270.0220.00017.97
7.2.260.0110.01117.97
7.2.250.0200.00617.97
7.2.240.0150.00717.97
7.2.230.0200.00517.97
7.2.220.0290.00417.97
7.2.210.0300.00017.97
7.2.200.0220.00817.97
7.2.190.0140.01417.97
7.2.180.0350.00417.97
7.2.170.0350.00017.97
7.2.160.0190.01017.97
7.2.150.0160.01018.13
7.2.140.0280.00718.00
7.2.130.0310.00717.97
7.2.120.0240.00418.00
7.2.110.0240.01017.97
7.2.100.0210.00518.25
7.2.90.0180.00418.20
7.2.80.0210.00018.03
7.2.70.0100.01017.97
7.2.60.0160.00318.26
7.2.50.0070.01318.06
5.6.400.0080.00619.49

preferences:
28.35 ms | 403 KiB | 5 Q