3v4l.org

run code in 300+ PHP versions simultaneously
<?php $DEBUD = true; function d($cmd) { global $DEBUD; if ($DEBUD) { echo("p.savelyev " . $cmd . "\n"); } exec($cmd); } d('echo "print this\n";');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/soeX1
function name:  (null)
number of ops:  5
compiled vars:  !0 = $DEBUD
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <true>
   10     1        INIT_FCALL                                               'd'
          2        SEND_VAL                                                 'echo+%22print+this%5Cn%22%3B'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Function d:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/soeX1
function name:  d
number of ops:  10
compiled vars:  !0 = $cmd, !1 = $DEBUD
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        BIND_GLOBAL                                              !1, 'DEBUD'
    5     2      > JMPZ                                                     !1, ->6
    6     3    >   CONCAT                                           ~2      'p.savelyev+', !0
          4        CONCAT                                           ~3      ~2, '%0A'
          5        ECHO                                                     ~3
    8     6    >   INIT_FCALL                                               'exec'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    9     9      > RETURN                                                   null

End of function d

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.11 ms | 1397 KiB | 16 Q