3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'Executing with all params:' . PHP_EOL; exec('echo Something', output: $output, result_code: $resultCode); echo 'Executing without output param:' . PHP_EOL; exec('echo Something', result_code: $resultCode); echo 'The End';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NeONG
function name:  (null)
number of ops:  14
compiled vars:  !0 = $output, !1 = $resultCode
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     'Executing+with+all+params%3A%0A'
    5     1        INIT_FCALL                                               'exec'
          2        SEND_VAL                                                 'echo+Something'
          3        SEND_REF                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    7     6        ECHO                                                     'Executing+without+output+param%3A%0A'
    9     7        INIT_FCALL                                               'exec'
          8        SEND_VAL                                                 'echo+Something'
          9        SEND_REF                                                 !1, 'result_code'
         10        CHECK_UNDEF_ARGS                                         
         11        DO_ICALL                                                 
   11    12        ECHO                                                     'The+End'
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.91 ms | 1394 KiB | 15 Q