3v4l.org

run code in 300+ PHP versions simultaneously
<?php testme(); function testme() { $data='b=2'; parse_str($data); echo $b; if(isset($b)) { echo "good\n"; } else { echo "bad\n"; } echo $b; 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/hQFch
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          
   19     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 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
Branch analysis from position: 15
filename:       /in/hQFch
function name:  testme
number of ops:  17
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                                                 
    7     4        ECHO                                                     !1
    8     5        ISSET_ISEMPTY_CV                                         !1
          6      > JMPZ                                                     ~4, ->9
    9     7    >   ECHO                                                     'good%0A'
          8      > JMP                                                      ->10
   11     9    >   ECHO                                                     'bad%0A'
   13    10    >   ECHO                                                     !1
   14    11        ISSET_ISEMPTY_CV                                         !1
         12      > JMPZ                                                     ~5, ->15
   15    13    >   ECHO                                                     'good%0A'
         14      > JMP                                                      ->16
   17    15    >   ECHO                                                     'bad%0A'
   19    16    > > RETURN                                                   null

End of function testme

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.72 ms | 1395 KiB | 15 Q