3v4l.org

run code in 300+ PHP versions simultaneously
<?php testme(); function testme() { $data='b=2'; parse_str($data); if(isset($b)) { echo 'isset b='.$b,"\n"; } else { echo 'notset b='.$b,"\n"; } if(isset($b)) { echo 'isset b='.$b,"\n"; } else { echo 'no b='.$b,"\n"; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0knIg
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          
   18     2      > RETURN                                                   1

Function testme:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 19
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
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: 10
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 19
Branch analysis from position: 15
Branch analysis from position: 19
filename:       /in/0knIg
function name:  testme
number of ops:  23
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        ISSET_ISEMPTY_CV                                         !1
          5      > JMPZ                                                     ~4, ->10
    8     6    >   CONCAT                                           ~5      'isset+b%3D', !1
          7        ECHO                                                     ~5
          8        ECHO                                                     '%0A'
          9      > JMP                                                      ->13
   10    10    >   CONCAT                                           ~6      'notset+b%3D', !1
         11        ECHO                                                     ~6
         12        ECHO                                                     '%0A'
   12    13    >   ISSET_ISEMPTY_CV                                         !1
         14      > JMPZ                                                     ~7, ->19
   13    15    >   CONCAT                                           ~8      'isset+b%3D', !1
         16        ECHO                                                     ~8
         17        ECHO                                                     '%0A'
         18      > JMP                                                      ->22
   16    19    >   CONCAT                                           ~9      'no+b%3D', !1
         20        ECHO                                                     ~9
         21        ECHO                                                     '%0A'
   18    22    > > RETURN                                                   null

End of function testme

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.61 ms | 1388 KiB | 15 Q