3v4l.org

run code in 300+ PHP versions simultaneously
<?php $letters = "A B C D E F G H I J K L M N O P Q R S T U V W X Y Z"; $let_arr = explode(" ", $letters); $str = ""; while (strlen($str) != (strlen($letters)-(count($let_arr)*2))+4) { $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.0000.00818.39
8.3.120.0000.00820.98
8.3.110.0040.00420.94
8.3.100.0030.00624.06
8.3.90.0040.00426.77
8.3.80.0060.00319.36
8.3.70.0100.01018.56
8.3.60.0040.01118.31
8.3.50.0090.00617.43
8.3.40.0110.00418.63
8.3.30.0120.00318.67
8.3.20.0000.00821.69
8.3.10.0040.00419.19
8.3.00.0000.00821.90
8.2.250.0030.00516.55
8.2.240.0000.00917.25
8.2.230.0110.00722.58
8.2.220.0130.00637.54
8.2.210.0070.00026.77
8.2.200.0060.00318.88
8.2.190.0120.00318.11
8.2.180.0150.00418.16
8.2.170.0110.00722.96
8.2.160.0140.00020.53
8.2.150.0040.00424.18
8.2.140.0070.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0110.00720.99
8.2.100.0000.01119.76
8.2.90.0060.00717.81
8.2.80.0000.00818.04
8.2.70.0000.00818.05
8.2.60.0050.00318.03
8.2.50.0030.00618.10
8.2.40.0030.00619.30
8.2.30.0050.00320.40
8.2.20.0040.00418.05
8.2.10.0000.00718.93
8.2.00.0000.00818.00
8.1.300.0060.01018.03
8.1.290.0040.00430.84
8.1.280.0140.00325.92
8.1.270.0080.00020.24
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0130.00723.93
8.1.230.0040.00822.65
8.1.220.0030.00617.79
8.1.210.0080.00018.90
8.1.200.0080.00317.35
8.1.190.0050.00317.23
8.1.180.0030.00618.10
8.1.170.0040.00418.64
8.1.160.0000.00818.95
8.1.150.0000.00718.88
8.1.140.0040.00418.85
8.1.130.0030.00320.24
8.1.120.0000.00817.44
8.1.110.0040.00417.34
8.1.100.0000.00717.41
8.1.90.0020.00517.45
8.1.80.0000.00817.47
8.1.70.0060.00317.48
8.1.60.0030.00517.46
8.1.50.0050.00217.39
8.1.40.0060.00317.57
8.1.30.0000.00917.53
8.1.20.0000.00917.70
8.1.10.0040.00417.58
8.1.00.0000.00817.37
8.0.300.0070.00019.72
8.0.290.0040.00416.75
8.0.280.0040.00418.45
8.0.270.0070.00017.17
8.0.260.0050.00318.45
8.0.250.0040.00416.89
8.0.240.0030.00316.84
8.0.230.0030.00316.86
8.0.220.0030.00316.84
8.0.210.0050.00316.75
8.0.200.0030.00316.85
8.0.190.0030.00316.78
8.0.180.0000.00816.83
8.0.170.0050.00316.93
8.0.160.0030.00616.82
8.0.150.0030.00416.82
8.0.140.0040.00416.86
8.0.130.0060.00013.41
8.0.120.0000.00816.77
8.0.110.0040.00416.85
8.0.100.0000.00716.90
8.0.90.0000.00716.70
8.0.80.0060.01216.83
8.0.70.0000.00716.82
8.0.60.0040.00416.69
8.0.50.0000.00916.84
8.0.30.0120.00817.09
8.0.20.0120.00917.11
8.0.10.0000.00716.82
8.0.00.0120.00716.75
7.4.330.0000.00415.55
7.4.320.0040.00416.55
7.4.300.0000.00616.36
7.4.290.0040.00416.52
7.4.280.0030.00516.59
7.4.270.0070.00016.60
7.4.260.0000.00716.63
7.4.250.0040.00416.50
7.4.240.0050.00216.50
7.4.230.0030.00316.69
7.4.220.0030.00616.50
7.4.210.0080.01016.52
7.4.200.0030.00616.64
7.4.160.0080.00916.49
7.4.130.0040.01216.76
7.4.120.0060.01016.49
7.4.110.0150.00616.66
7.4.100.0100.00716.52
7.4.90.0060.01116.54
7.4.80.0030.01419.39
7.4.70.0060.01216.52
7.4.60.0130.00316.39
7.4.50.0030.00816.44
7.4.40.0120.01216.52
7.4.10.0030.01415.13
7.4.00.0070.01015.08
7.3.330.0020.00213.20
7.3.320.0050.00013.16
7.3.310.0030.00316.29
7.3.300.0040.00416.25
7.3.290.0110.00416.36
7.3.280.0130.00416.33
7.3.260.0100.01016.40
7.3.240.0080.00916.53
7.3.230.0090.00616.55
7.3.210.0150.00316.64
7.3.200.0090.00816.30
7.3.190.0060.01016.70
7.3.180.0070.01016.54
7.3.170.0060.00916.32
7.3.160.0070.01116.45
7.3.130.0070.01114.63
7.3.120.0080.00814.74
7.3.110.0060.00914.84
7.3.100.0070.00814.81
7.3.90.0070.01014.89
7.3.80.0060.01014.88
7.3.70.0070.01014.80
7.3.60.0070.00714.76
7.3.50.0110.00614.76
7.3.40.0080.00614.72
7.3.30.0070.00714.82
7.3.20.0100.01015.57
7.3.10.0120.00915.52
7.3.00.0070.01015.53
7.2.330.0090.00916.68
7.2.320.0090.01516.74
7.2.310.0160.00016.84
7.2.300.0090.00616.85
7.2.290.0090.01516.52
7.2.260.0050.01114.73
7.2.250.0110.00415.11
7.2.240.0050.01115.07
7.2.230.0030.01415.14
7.2.220.0060.01015.13
7.2.210.0060.01114.95
7.2.200.0070.00615.13
7.2.190.0090.00815.06
7.2.180.0030.01315.01
7.2.170.0090.00814.98
7.2.160.0090.00814.88
7.2.150.0120.00915.75
7.2.140.0170.00815.70
7.2.130.0110.00715.85
7.2.120.0120.00815.77
7.2.110.0250.01015.76
7.2.100.0100.01115.75
7.2.90.0130.00715.80
7.2.80.0110.01015.79
7.2.70.0130.00615.77
7.2.60.0090.00815.73
7.2.50.0100.00715.75
7.2.40.0150.00615.74
7.2.30.0140.00716.06
7.2.20.0120.00715.88
7.2.10.0150.00815.96
7.2.00.0100.00915.93
7.1.330.0080.00815.24
7.1.320.0080.00715.18
7.1.310.0050.01115.19
7.1.300.0100.00914.79
7.1.290.0090.00814.80
7.1.280.0090.01014.48
7.1.270.0130.00814.61
7.1.260.0130.00614.69
7.1.250.0100.00614.65
7.1.240.0170.00613.90
7.1.230.0170.01013.75
7.1.220.0200.00713.97
7.1.210.0200.00714.01
7.1.200.0290.00814.10
7.1.190.0120.00813.91
7.1.180.0130.00713.95
7.1.170.0100.01013.75
7.1.160.0130.00913.91
7.1.150.0150.00614.02
7.1.140.0100.01213.91
7.1.130.0090.00513.89
7.1.120.0000.01413.98
7.1.110.0110.00813.91
7.1.100.0250.00713.96
7.1.90.0120.01013.75
7.1.80.0100.00514.06
7.1.70.0000.01713.86
7.1.60.0110.00514.05
7.1.50.0140.00314.08
7.1.40.0090.00613.88
7.1.30.0120.00313.98
7.1.20.0120.00313.70
7.1.10.0160.00014.16
7.1.00.0120.00013.73

preferences:
28.58 ms | 403 KiB | 5 Q