3v4l.org

run code in 300+ PHP versions simultaneously
<?php testme(); function testme() { $data='b=2'; parse_str($data); echo $b; echo $b; if(false) { echo $b; } else { echo "bad\n"; } if(isset($b)) { echo "good\n"; } else { echo "bad\n"; } if(isset($b)) { echo "good\n"; } else { echo "bad\n"; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r66Le
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'testme'
          1        DO_FCALL                                      0          
   27     2      > RETURN                                                   1

Function testme:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
Branch analysis from position: 19
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
Branch analysis from position: 14
filename:       /in/r66Le
function name:  testme
number of ops:  21
compiled vars:  !0 = $data, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 'b%3D2'
    6     1        INIT_FCALL                                               'parse_str'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    8     4        ECHO                                                     !1
    9     5        ECHO                                                     !1
   10     6      > JMPZ                                                     <false>, ->9
   11     7    >   ECHO                                                     !1
          8      > JMP                                                      ->10
   13     9    >   ECHO                                                     'bad%0A'
   16    10    >   ISSET_ISEMPTY_CV                                         !1
         11      > JMPZ                                                     ~4, ->14
   17    12    >   ECHO                                                     'good%0A'
         13      > JMP                                                      ->15
   19    14    >   ECHO                                                     'bad%0A'
   22    15    >   ISSET_ISEMPTY_CV                                         !1
         16      > JMPZ                                                     ~5, ->19
   23    17    >   ECHO                                                     'good%0A'
         18      > JMP                                                      ->20
   25    19    >   ECHO                                                     'bad%0A'
   27    20    > > RETURN                                                   null

End of function testme

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.13 ms | 1396 KiB | 15 Q