3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pos = strpos('PHP 5.6.10', phpversion()); $pos_old = strpos('5.5.9', phpversion()); $arr_new = array(); $arr_old = array(); if($pos !== false){ $arr = timezone_abbreviations_list(); $i=1; foreach($arr as $key => $a){ foreach($a as $index => $value){ if($i > 1845){ echo $i.'. Abbrevation : '.$key.', offset : '.$value['offset'].', timezone : '.$value['timezone_id']; echo "\n"; } $i++; } } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 45
Branch analysis from position: 18
2 jumps found. (Code = 77) Position 1 = 23, Position 2 = 44
Branch analysis from position: 23
2 jumps found. (Code = 78) Position 1 = 24, Position 2 = 44
Branch analysis from position: 24
2 jumps found. (Code = 77) Position 1 = 26, Position 2 = 42
Branch analysis from position: 26
2 jumps found. (Code = 78) Position 1 = 27, Position 2 = 42
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 40
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
Branch analysis from position: 40
Branch analysis from position: 42
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 42
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 44
Branch analysis from position: 45
filename:       /in/T5R6F
function name:  (null)
number of ops:  46
compiled vars:  !0 = $pos, !1 = $pos_old, !2 = $arr_new, !3 = $arr_old, !4 = $arr, !5 = $i, !6 = $a, !7 = $key, !8 = $value, !9 = $index
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strpos'
          1        SEND_VAL                                                 'PHP+5.6.10'
          2        INIT_FCALL                                               'phpversion'
          3        DO_ICALL                                         $10     
          4        SEND_VAR                                                 $10
          5        DO_ICALL                                         $11     
          6        ASSIGN                                                   !0, $11
    4     7        INIT_FCALL                                               'strpos'
          8        SEND_VAL                                                 '5.5.9'
          9        INIT_FCALL                                               'phpversion'
         10        DO_ICALL                                         $13     
         11        SEND_VAR                                                 $13
         12        DO_ICALL                                         $14     
         13        ASSIGN                                                   !1, $14
    5    14        ASSIGN                                                   !2, <array>
    6    15        ASSIGN                                                   !3, <array>
    8    16        TYPE_CHECK                                  1018          !0
         17      > JMPZ                                                     ~18, ->45
    9    18    >   INIT_FCALL                                               'timezone_abbreviations_list'
         19        DO_ICALL                                         $19     
         20        ASSIGN                                                   !4, $19
   10    21        ASSIGN                                                   !5, 1
   11    22      > FE_RESET_R                                       $22     !4, ->44
         23    > > FE_FETCH_R                                       ~23     $22, !6, ->44
         24    >   ASSIGN                                                   !7, ~23
   12    25      > FE_RESET_R                                       $25     !6, ->42
         26    > > FE_FETCH_R                                       ~26     $25, !8, ->42
         27    >   ASSIGN                                                   !9, ~26
   13    28        IS_SMALLER                                               1845, !5
         29      > JMPZ                                                     ~28, ->40
   14    30    >   CONCAT                                           ~29     !5, '.+Abbrevation+%3A+'
         31        CONCAT                                           ~30     ~29, !7
         32        CONCAT                                           ~31     ~30, '%2C+offset+%3A+'
         33        FETCH_DIM_R                                      ~32     !8, 'offset'
         34        CONCAT                                           ~33     ~31, ~32
         35        CONCAT                                           ~34     ~33, '%2C+timezone+%3A+'
         36        FETCH_DIM_R                                      ~35     !8, 'timezone_id'
         37        CONCAT                                           ~36     ~34, ~35
         38        ECHO                                                     ~36
   15    39        ECHO                                                     '%0A'
   17    40    >   PRE_INC                                                  !5
   12    41      > JMP                                                      ->26
         42    >   FE_FREE                                                  $25
   11    43      > JMP                                                      ->23
         44    >   FE_FREE                                                  $22
   23    45    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.51 ms | 1400 KiB | 19 Q