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(); print "<pre>"; if($pos !== false){ $arr_new = timezone_abbreviations_list(); $i=0; foreach( $arr_new as $key => $arr){ if($key == 'pst'){ $i=1; } if($i == 1){ foreach($arr as $sub_arr){ echo $key. '=>'. $sub_arr['timezone_id']; echo "\n"; } } } } if($pos_old !== false){ $arr_old = array_keys(timezone_abbreviations_list()); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 42
Branch analysis from position: 19
2 jumps found. (Code = 77) Position 1 = 24, Position 2 = 41
Branch analysis from position: 24
2 jumps found. (Code = 78) Position 1 = 25, Position 2 = 41
Branch analysis from position: 25
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 29
Branch analysis from position: 28
2 jumps found. (Code = 43) Position 1 = 31, Position 2 = 40
Branch analysis from position: 31
2 jumps found. (Code = 77) Position 1 = 32, Position 2 = 39
Branch analysis from position: 32
2 jumps found. (Code = 78) Position 1 = 33, Position 2 = 39
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
Branch analysis from position: 39
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
Branch analysis from position: 39
Branch analysis from position: 40
Branch analysis from position: 29
Branch analysis from position: 41
2 jumps found. (Code = 43) Position 1 = 44, Position 2 = 50
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 50
Branch analysis from position: 41
Branch analysis from position: 42
filename:       /in/YXUIC
function name:  (null)
number of ops:  51
compiled vars:  !0 = $pos, !1 = $pos_old, !2 = $arr_new, !3 = $arr_old, !4 = $i, !5 = $arr, !6 = $key, !7 = $sub_arr
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                                         $8      
          4        SEND_VAR                                                 $8
          5        DO_ICALL                                         $9      
          6        ASSIGN                                                   !0, $9
    4     7        INIT_FCALL                                               'strpos'
          8        SEND_VAL                                                 '5.5.9'
          9        INIT_FCALL                                               'phpversion'
         10        DO_ICALL                                         $11     
         11        SEND_VAR                                                 $11
         12        DO_ICALL                                         $12     
         13        ASSIGN                                                   !1, $12
    5    14        ASSIGN                                                   !2, <array>
    6    15        ASSIGN                                                   !3, <array>
    7    16        ECHO                                                     '%3Cpre%3E'
    8    17        TYPE_CHECK                                  1018          !0
         18      > JMPZ                                                     ~16, ->42
    9    19    >   INIT_FCALL                                               'timezone_abbreviations_list'
         20        DO_ICALL                                         $17     
         21        ASSIGN                                                   !2, $17
   10    22        ASSIGN                                                   !4, 0
   11    23      > FE_RESET_R                                       $20     !2, ->41
         24    > > FE_FETCH_R                                       ~21     $20, !5, ->41
         25    >   ASSIGN                                                   !6, ~21
   12    26        IS_EQUAL                                                 !6, 'pst'
         27      > JMPZ                                                     ~23, ->29
   13    28    >   ASSIGN                                                   !4, 1
   15    29    >   IS_EQUAL                                                 !4, 1
         30      > JMPZ                                                     ~25, ->40
   16    31    > > FE_RESET_R                                       $26     !5, ->39
         32    > > FE_FETCH_R                                               $26, !7, ->39
   18    33    >   CONCAT                                           ~27     !6, '%3D%3E'
         34        FETCH_DIM_R                                      ~28     !7, 'timezone_id'
         35        CONCAT                                           ~29     ~27, ~28
         36        ECHO                                                     ~29
   19    37        ECHO                                                     '%0A'
   16    38      > JMP                                                      ->32
         39    >   FE_FREE                                                  $26
   11    40    > > JMP                                                      ->24
         41    >   FE_FREE                                                  $20
   26    42    >   TYPE_CHECK                                  1018          !1
         43      > JMPZ                                                     ~30, ->50
   27    44    >   INIT_FCALL                                               'array_keys'
         45        INIT_FCALL                                               'timezone_abbreviations_list'
         46        DO_ICALL                                         $31     
         47        SEND_VAR                                                 $31
         48        DO_ICALL                                         $32     
         49        ASSIGN                                                   !3, $32
   30    50    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.85 ms | 1400 KiB | 21 Q