3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo '<pre>'; // Outputs all the result of shellcommand "ls", and returns // the last output line into $last_line. Stores the return value // of the shell command in $retval. $last_line = system('ls', $retval); // Printing additional info echo ' </pre> <hr />Last line of the output: ' . $last_line . ' <hr />Return value: ' . $retval;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5hsnd
function name:  (null)
number of ops:  11
compiled vars:  !0 = $last_line, !1 = $retval
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     '%3Cpre%3E'
    7     1        INIT_FCALL                                               'system'
          2        SEND_VAL                                                 'ls'
          3        SEND_REF                                                 !1
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
   12     6        CONCAT                                           ~4      '%0A%3C%2Fpre%3E%0A%3Chr+%2F%3ELast+line+of+the+output%3A+', !0
          7        CONCAT                                           ~5      ~4, '%0A%3Chr+%2F%3EReturn+value%3A+'
   13     8        CONCAT                                           ~6      ~5, !1
          9        ECHO                                                     ~6
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.91 ms | 1385 KiB | 15 Q