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){ if(in_array($key, array('acdt', 'acwdt', 'acwst', 'aedt', 'aest','awdt','awst','fet','jcst','jwst','lhdt','msm','sdt','sret','wib','wita','wsst','xjt'))){ 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 = 38
Branch analysis from position: 19
2 jumps found. (Code = 77) Position 1 = 23, Position 2 = 37
Branch analysis from position: 23
2 jumps found. (Code = 78) Position 1 = 24, Position 2 = 37
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 36
Branch analysis from position: 27
2 jumps found. (Code = 77) Position 1 = 28, Position 2 = 35
Branch analysis from position: 28
2 jumps found. (Code = 78) Position 1 = 29, Position 2 = 35
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
Branch analysis from position: 35
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 35
Branch analysis from position: 36
Branch analysis from position: 37
2 jumps found. (Code = 43) Position 1 = 40, Position 2 = 46
Branch analysis from position: 40
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 46
Branch analysis from position: 37
Branch analysis from position: 38
filename:       /in/ghWUY
function name:  (null)
number of ops:  47
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, ->38
    9    19    >   INIT_FCALL                                               'timezone_abbreviations_list'
         20        DO_ICALL                                         $16     
         21        ASSIGN                                                   !2, $16
   10    22      > FE_RESET_R                                       $18     !2, ->37
         23    > > FE_FETCH_R                                       ~19     $18, !4, ->37
         24    >   ASSIGN                                                   !5, ~19
   11    25        IN_ARRAY                                                 !5, <array>
         26      > JMPZ                                                     ~21, ->36
   12    27    > > FE_RESET_R                                       $22     !4, ->35
         28    > > FE_FETCH_R                                               $22, !6, ->35
   14    29    >   CONCAT                                           ~23     !5, '%3D%3E'
         30        FETCH_DIM_R                                      ~24     !6, 'timezone_id'
         31        CONCAT                                           ~25     ~23, ~24
         32        ECHO                                                     ~25
   15    33        ECHO                                                     '%0A'
   12    34      > JMP                                                      ->28
         35    >   FE_FREE                                                  $22
   10    36    > > JMP                                                      ->23
         37    >   FE_FREE                                                  $18
   21    38    >   TYPE_CHECK                                  1018          !1
         39      > JMPZ                                                     ~26, ->46
   22    40    >   INIT_FCALL                                               'array_keys'
         41        INIT_FCALL                                               'timezone_abbreviations_list'
         42        DO_ICALL                                         $27     
         43        SEND_VAR                                                 $27
         44        DO_ICALL                                         $28     
         45        ASSIGN                                                   !3, $28
   25    46    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.07 ms | 1400 KiB | 21 Q