3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timezone_identifiers = DateTimeZone::listIdentifiers(); $maxlen = 0; foreach($timezone_identifiers as $id) { if(strlen($id) > $maxlen) $maxlen = strlen($id); } echo "Max Length: $maxlen"; /* Output: Max Length: 32 */ ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 12
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 12
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 11
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/COouN
function name:  (null)
number of ops:  17
compiled vars:  !0 = $timezone_identifiers, !1 = $maxlen, !2 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_STATIC_METHOD_CALL                                  'DateTimeZone', 'listIdentifiers'
          1        DO_FCALL                                      0  $3      
          2        ASSIGN                                                   !0, $3
    4     3        ASSIGN                                                   !1, 0
    5     4      > FE_RESET_R                                       $6      !0, ->12
          5    > > FE_FETCH_R                                               $6, !2, ->12
    7     6    >   STRLEN                                           ~7      !2
          7        IS_SMALLER                                               !1, ~7
          8      > JMPZ                                                     ~8, ->11
    8     9    >   STRLEN                                           ~9      !2
         10        ASSIGN                                                   !1, ~9
    5    11    > > JMP                                                      ->5
         12    >   FE_FREE                                                  $6
   11    13        NOP                                                      
         14        FAST_CONCAT                                      ~11     'Max+Length%3A+', !1
         15        ECHO                                                     ~11
   19    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.76 ms | 1394 KiB | 13 Q