3v4l.org

run code in 300+ PHP versions simultaneously
<?php $letters = implode(" ", range('A', 'Z')); $let_arr = explode(" ", $letters); $str = ""; while (strlen($str) != (strlen($letters)-(count($let_arr)*2))+4) { // while strlen($str) != (51 - 52 + 4)) { // while strlen($str) != 3) { $tr = strlen($str); if ($tr > 0) { if ($tr > 1) { $str .= $let_arr[0]; } else { $str .= $let_arr[12]; } } else { $str .= $let_arr[8]; } } echo $str;

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.130.0080.00018.38
8.3.120.0050.00520.79
8.3.110.0060.00320.94
8.3.100.0080.00324.06
8.3.90.0060.00326.77
8.3.80.0090.00016.63
8.3.70.0060.00916.63
8.3.60.0060.00918.39
8.3.50.0110.00317.31
8.3.40.0060.00918.84
8.3.30.0150.00018.84
8.3.20.0070.00021.92
8.3.10.0060.00319.18
8.3.00.0080.00021.95
8.2.250.0090.00916.38
8.2.240.0120.00417.30
8.2.230.0000.00722.58
8.2.220.0140.00037.54
8.2.210.0120.00326.77
8.2.200.0050.00516.38
8.2.190.0140.00716.58
8.2.180.0130.00918.42
8.2.170.0070.00722.96
8.2.160.0040.01120.49
8.2.150.0040.00424.18
8.2.140.0070.00324.66
8.2.130.0030.00526.16
8.2.120.0040.00421.18
8.2.110.0100.00022.28
8.2.100.0030.00917.91
8.2.90.0090.00017.75
8.2.80.0040.00418.05
8.2.70.0050.00317.93
8.2.60.0040.00418.16
8.2.50.0040.00418.10
8.2.40.0040.00420.99
8.2.30.0040.00420.37
8.2.20.0030.00518.13
8.2.10.0040.00419.02
8.2.00.0050.00318.11
8.1.300.0030.00619.68
8.1.290.0030.00618.88
8.1.280.0090.01325.92
8.1.270.0080.00020.25
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0030.00622.59
8.1.230.0090.00319.11
8.1.220.0030.00517.76
8.1.210.0060.00318.77
8.1.200.0130.00817.00
8.1.190.0040.00417.22
8.1.180.0030.00618.10
8.1.170.0040.00418.66
8.1.160.0000.00818.93
8.1.150.0000.00718.94
8.1.140.0000.00718.78
8.1.130.0030.00320.25
8.1.120.0040.00417.34
8.1.110.0060.00317.35
8.1.100.0040.00417.43
8.1.90.0000.00717.46
8.1.80.0060.00317.36
8.1.70.0030.00617.48
8.1.60.0060.00317.63
8.1.50.0040.00417.54
8.1.40.0040.00417.40
8.1.30.0000.00817.66
8.1.20.0000.00917.63
8.1.10.0040.00417.57
8.1.00.0030.00617.51
8.0.300.0050.00219.70
8.0.290.0040.00416.75
8.0.280.0050.00318.37
8.0.270.0030.00316.73
8.0.260.0000.00618.54
8.0.250.0000.00716.97
8.0.240.0070.00016.97
8.0.230.0030.00316.77
8.0.220.0030.00516.82
8.0.210.0000.00816.76
8.0.200.0000.00716.82
8.0.190.0000.00716.79
8.0.180.0040.00416.69
8.0.170.0030.00616.82
8.0.160.0060.00616.83
8.0.150.0030.00316.75
8.0.140.0030.00316.74
8.0.130.0000.00513.27
8.0.120.0040.00416.87
8.0.110.0040.00416.95
8.0.100.0040.00416.88
8.0.90.0050.00316.85
8.0.80.0040.01116.81
8.0.70.0040.00416.93
8.0.60.0000.00816.96
8.0.50.0050.00217.00
8.0.30.0090.01217.19
8.0.20.0140.00717.04
8.0.10.0000.00916.93
8.0.00.0080.01016.66
7.4.330.0050.00015.55
7.4.320.0000.00716.49
7.4.300.0000.00616.49
7.4.290.0080.00016.49
7.4.280.0000.00716.49
7.4.270.0030.00316.66
7.4.260.0070.00016.63
7.4.250.0070.00016.47
7.4.240.0070.00016.52
7.4.230.0000.00716.67
7.4.220.0040.00416.51
7.4.210.0130.00416.53
7.4.200.0030.00616.42
7.4.160.0060.01016.42
7.4.130.0110.00716.57
7.4.120.0100.01316.51
7.4.110.0110.00616.43
7.4.100.0080.01016.55
7.4.90.0070.01016.45
7.4.80.0150.00619.39
7.4.70.0090.00616.50
7.4.60.0170.00016.59
7.4.50.0110.00216.37
7.4.40.0060.01516.52
7.4.10.0050.01614.60
7.4.00.0080.01214.97
7.3.330.0060.00013.09
7.3.320.0000.00613.25
7.3.310.0070.00016.16
7.3.300.0070.00016.23
7.3.290.0110.00316.35
7.3.280.0200.00616.32
7.3.260.0090.00916.42
7.3.240.0100.00616.37
7.3.230.0030.01416.30
7.3.210.0160.00016.68
7.3.200.0100.00716.45
7.3.190.0090.01116.40
7.3.180.0130.00316.37
7.3.170.0090.00616.53
7.3.160.0120.00416.35
7.3.130.0140.00414.68
7.3.120.0030.01314.87
7.3.110.0100.00814.72
7.3.100.0050.01014.53
7.3.90.0100.00514.87
7.3.80.0090.00714.84
7.3.70.0100.00514.62
7.3.60.0070.00914.82
7.3.50.0110.00714.79
7.3.40.0090.00914.78
7.3.30.0090.00514.67
7.3.20.0120.00615.60
7.3.10.0130.00615.60
7.3.00.0100.00715.58
7.2.330.0030.01416.73
7.2.320.0190.00616.71
7.2.310.0130.00316.45
7.2.300.0100.00716.68
7.2.290.0100.00716.74
7.2.260.0080.01015.01
7.2.250.0070.01015.07
7.2.240.0080.00815.10
7.2.230.0030.01015.09
7.2.220.0110.00715.16
7.2.210.0020.01315.00
7.2.200.0090.00315.02
7.2.190.0070.01014.69
7.2.180.0070.00915.03
7.2.170.0080.00814.89
7.2.160.0100.00915.05
7.2.150.0140.00815.63
7.2.140.0260.00815.75
7.2.130.0100.00815.61
7.2.120.0160.00415.60
7.2.110.0080.01215.66
7.2.100.0210.01015.56
7.2.90.0110.00715.69
7.2.80.0130.00315.63
7.2.70.0210.00815.61
7.2.60.0120.00815.64
7.2.50.0090.00815.67
7.2.40.0110.00915.76
7.2.30.0130.01015.60
7.2.20.0110.00915.70
7.2.10.0110.00815.53
7.2.00.0120.00915.60
7.1.330.0140.00314.89
7.1.320.0130.00314.89
7.1.310.0040.01414.83
7.1.300.0040.01114.89
7.1.290.0060.01014.60
7.1.280.0100.00514.71
7.1.270.0110.00914.63
7.1.260.0100.00614.76
7.1.250.0110.00514.60
7.1.240.0060.01513.65
7.1.230.0100.01014.03
7.1.220.0240.00313.80
7.1.210.0210.00313.80
7.1.200.0180.00013.84
7.1.190.0140.00413.77
7.1.180.0140.00914.03
7.1.170.0130.01013.81
7.1.160.0260.00213.98
7.1.150.0070.01913.72
7.1.140.0140.01013.98
7.1.130.0130.01214.01
7.1.120.0130.01314.02
7.1.110.0170.00914.00
7.1.100.0050.01613.98
7.1.90.0120.01513.76
7.1.80.0160.01413.77
7.1.70.0240.00513.91
7.1.60.0160.00813.93
7.1.50.0150.01014.07
7.1.40.0130.00913.73
7.1.30.0150.00713.91
7.1.20.0460.01214.18
7.1.10.0080.01713.59
7.1.00.0130.00813.97

preferences:
27.82 ms | 403 KiB | 5 Q