3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.15 ms | 1398 KiB | 17 Q