3v4l.org

run code in 300+ PHP versions simultaneously
<?php function s($UserGMTOffset){ $UserGMTOffset = $UserGMTOffset * 100; $str_tmp = "-"; if($UserGMTOffset >= 0) { //change - to + $str_tmp = "+"; } if(abs($UserGMTOffset) > 999){ $str_tmp .= abs($UserGMTOffset); } else { $str_tmp .= '0'.abs($UserGMTOffset); if($UserGMTOffset == 0){ $str_tmp .= '00'; } } var_dump(array('str_tmp' => $str_tmp, 'zone' => $zone)); } s('+0000');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3h4bN
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   27     0  E >   INIT_FCALL                                               's'
          1        SEND_VAL                                                 '%2B0000'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function s:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 17
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 25
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
Branch analysis from position: 7
filename:       /in/3h4bN
function name:  s
number of ops:  31
compiled vars:  !0 = $UserGMTOffset, !1 = $str_tmp, !2 = $zone
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        MUL                                              ~3      !0, 100
          2        ASSIGN                                                   !0, ~3
    6     3        ASSIGN                                                   !1, '-'
    7     4        IS_SMALLER_OR_EQUAL                                      0, !0
          5      > JMPZ                                                     ~6, ->7
   10     6    >   ASSIGN                                                   !1, '%2B'
   13     7    >   INIT_FCALL                                               'abs'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $8      
         10        IS_SMALLER                                               999, $8
         11      > JMPZ                                                     ~9, ->17
   14    12    >   INIT_FCALL                                               'abs'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $10     
         15        ASSIGN_OP                                     8          !1, $10
         16      > JMP                                                      ->25
   18    17    >   INIT_FCALL                                               'abs'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $12     
         20        CONCAT                                           ~13     '0', $12
         21        ASSIGN_OP                                     8          !1, ~13
   19    22        IS_EQUAL                                                 !0, 0
         23      > JMPZ                                                     ~15, ->25
   20    24    >   ASSIGN_OP                                     8          !1, '00'
   23    25    >   INIT_FCALL                                               'var_dump'
         26        INIT_ARRAY                                       ~17     !1, 'str_tmp'
         27        ADD_ARRAY_ELEMENT                                ~17     !2, 'zone'
         28        SEND_VAL                                                 ~17
         29        DO_ICALL                                                 
   25    30      > RETURN                                                   null

End of function s

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.16 ms | 1403 KiB | 18 Q