3v4l.org

run code in 300+ PHP versions simultaneously
<?php $consts = get_defined_constants(); $consts = array_keys($consts); usort($consts,function($a,$b){return (int)(strlen($a)<strlen($b));}); 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.0090.00620.94
8.3.100.0100.00324.06
8.3.90.0060.00326.77
8.3.80.0110.00019.36
8.3.70.0090.01218.20
8.3.60.0110.01518.43
8.3.50.0120.01124.49
8.3.40.0130.01420.52
8.3.30.0110.00718.64
8.3.20.0030.00624.18
8.3.10.0100.00024.66
8.3.00.0060.00326.16
8.2.230.0030.01022.58
8.2.220.0070.00337.54
8.2.210.0060.00926.77
8.2.200.0110.00018.88
8.2.190.0100.00718.10
8.2.180.0030.01425.92
8.2.170.0180.00018.82
8.2.160.0180.00422.96
8.2.150.0050.00525.66
8.2.140.0100.00624.66
8.2.130.0030.00626.16
8.2.120.0040.01117.50
8.2.110.0060.00620.64
8.2.100.0000.01318.96
8.1.290.0060.00630.84
8.1.280.0140.00725.92
8.1.270.0000.00923.99
8.1.260.0060.00326.35
8.1.250.0030.00628.09
8.1.240.0120.00018.67
8.1.230.0040.00818.70
8.0.230.0220.00930.84
8.0.30.0180.00917.09
8.0.20.0110.01617.13
8.0.10.0120.01217.15
8.0.00.0130.01317.40
7.4.160.0150.01116.77
7.4.150.0120.01616.69
7.4.140.0130.01316.60
7.4.130.0140.01116.53
7.4.120.0110.01316.51
7.4.110.0110.01416.59
7.4.100.0150.01216.54
7.4.90.0150.01116.53
7.4.80.0130.01216.46
7.4.70.0150.01316.49
7.4.60.0150.01016.50
7.4.50.0120.01616.52
7.4.40.0140.01016.55
7.4.30.0120.01216.92
7.4.20.0110.01316.58
7.4.10.0120.01216.57
7.4.00.0120.01016.67
7.3.280.0110.01416.50
7.3.270.0110.01616.53
7.3.260.0150.01016.45
7.3.250.0110.01416.50
7.3.240.0150.01316.50
7.3.230.0140.01116.46
7.3.220.0150.01316.45
7.3.210.0130.01116.42
7.3.200.0120.01316.46
7.3.190.0120.01216.48
7.3.180.0140.01116.50
7.3.170.0120.01316.42
7.3.160.0130.00916.43
7.3.150.0130.01016.39
7.3.140.0110.01216.50
7.3.130.0130.01016.51
7.3.120.0090.01316.51
7.3.110.0140.00916.43
7.3.100.0130.01016.42
7.3.90.0150.00816.58
7.3.80.0120.01116.46
7.3.70.0120.01216.42
7.3.60.0130.01116.53
7.3.50.0130.01016.49
7.3.40.0110.01316.51
7.3.30.0120.01316.55
7.3.20.0140.01216.61
7.3.10.0330.00916.51
7.3.00.0110.01216.49
7.2.340.0130.00716.61
7.2.330.0120.00816.52
7.2.320.0090.01616.55
7.2.310.0130.02316.59
7.2.300.0030.01816.64
7.2.290.0160.00616.54
7.2.280.0120.00916.55
7.2.270.0110.01916.57
7.2.260.0140.01116.56
7.2.250.0100.01316.55
7.2.240.0100.01316.66
7.2.230.0100.01016.61
7.2.220.0090.00916.58
7.2.210.0070.01116.58
7.2.200.0140.00916.76
7.2.190.0090.02016.67
7.2.180.0250.01016.68
7.2.170.0120.01216.70
7.2.160.0080.01616.72
7.2.150.0110.01916.83
7.2.140.0100.01316.86
7.2.130.0080.01217.00
7.2.120.0200.00916.95
7.2.110.0100.01016.91
7.2.100.0190.00316.89
7.2.90.0090.02016.82
7.2.80.0190.00316.84
7.2.70.0060.01316.86
7.2.60.0210.00516.79
7.2.50.0130.01616.88
7.2.40.0190.01316.81
7.2.30.0120.01216.80
7.2.20.0120.01216.95
7.2.10.0070.00916.82
7.2.00.0080.01616.80
7.1.330.0150.01215.73
7.1.320.0050.01315.70
7.1.310.0150.00315.68
7.1.300.0200.01615.73
7.1.290.0180.00315.71
7.1.280.0130.01115.69
7.1.270.0080.01115.67
7.1.260.0070.01115.56
7.1.250.0180.00815.58
7.1.240.0100.01915.48
7.1.230.0090.01315.66
7.1.220.0040.01615.62
7.1.210.0250.01615.68
7.1.200.0120.01215.60
7.1.190.0060.01215.64
7.1.180.0120.00915.59
7.1.170.0090.01815.63
7.1.160.0080.01115.52
7.1.150.0060.01915.59
7.1.140.0070.01715.59
7.1.130.0060.01715.56
7.1.120.0130.01615.69
7.1.110.0150.01515.51
7.1.100.0280.00315.45
7.1.90.0110.01415.63
7.1.80.0190.00715.64
7.1.70.0030.01715.48
7.1.60.0090.01915.65
7.1.50.0090.02215.57
7.1.40.0190.01315.62
7.1.30.0120.01615.68
7.1.20.0040.01515.63
7.1.10.0120.01215.57
7.1.00.0070.01415.53
7.0.330.0030.01515.39
7.0.320.0220.00215.47
7.0.310.0160.00315.44
7.0.300.0120.01215.27
7.0.290.0120.01515.43
7.0.280.0170.00315.41
7.0.270.0170.01015.30
7.0.260.0100.01015.26
7.0.250.0220.01515.50
7.0.240.0090.00915.54
7.0.230.0130.01315.51
7.0.220.0140.01415.52
7.0.210.0080.01115.51
7.0.200.0030.02115.36
7.0.190.0090.01315.42
7.0.180.0130.01015.33
7.0.170.0180.01815.53
7.0.160.0130.01515.41
7.0.150.0080.01515.39
7.0.140.0070.01415.31
7.0.130.0770.01515.41
7.0.120.0160.00815.54
7.0.110.0080.01615.26
7.0.100.0070.01415.45
7.0.90.0280.00015.04
7.0.80.0150.00415.21
7.0.70.0110.00615.30
7.0.60.0140.01215.26
7.0.50.0100.02115.33
7.0.40.0140.01615.48
7.0.30.0060.01215.52
7.0.10.0140.00915.42
7.0.00.0490.00915.36
5.6.400.0060.01916.16
5.6.390.0140.02816.04
5.6.380.0130.01316.11
5.6.370.0160.01616.14
5.6.360.0200.01716.16
5.6.350.0110.01416.16
5.6.340.0060.02516.27
5.6.330.0170.01416.14
5.6.320.0280.01016.26
5.6.310.0070.02816.16
5.6.300.0120.02115.98
5.6.290.0040.03016.02
5.6.280.0130.02216.32
5.6.270.0090.01916.20
5.6.260.0150.01516.07
5.6.250.0160.01616.31
5.6.240.0110.01816.17
5.6.230.0120.01216.25
5.6.220.0220.01116.32
5.6.210.0070.02016.22
5.6.200.0150.02016.26
5.6.190.0120.01816.35
5.6.180.0210.01016.18
5.6.170.0120.01716.21
5.6.160.0150.01216.30
5.6.150.0170.01016.25
5.5.380.0090.01516.17
5.5.370.0130.01316.20
5.5.360.0150.01115.97
5.5.350.0060.01915.96
5.5.340.0130.01816.13
5.5.330.0120.01816.11
5.5.320.0190.01216.06
5.5.310.0100.01816.05

preferences:
57.71 ms | 403 KiB | 5 Q