3v4l.org

run code in 300+ PHP versions simultaneously
<?php $argv[1] = array($argv[0], 'arg1', 'arg2', 'arg3'); var_dump(getopt(''));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JEkV6
function name:  (null)
number of ops:  14
compiled vars:  !0 = $argv
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_DIM_R                                      ~2      !0, 0
          1        INIT_ARRAY                                       ~3      ~2
          2        ADD_ARRAY_ELEMENT                                ~3      'arg1'
          3        ADD_ARRAY_ELEMENT                                ~3      'arg2'
          4        ADD_ARRAY_ELEMENT                                ~3      'arg3'
          5        ASSIGN_DIM                                               !0, 1
          6        OP_DATA                                                  ~3
    5     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'getopt'
          9        SEND_VAL                                                 ''
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.74 ms | 1385 KiB | 17 Q