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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.23 ms | 1400 KiB | 21 Q