3v4l.org

run code in 300+ PHP versions simultaneously
<?php function arg($arg = null, $arg2 = null) { if (!isset($arg, $arg2)) { return 'error'; } } echo arg(0, 0)."\n"; echo arg(0)."\n"; echo arg();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tu0Fh
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'arg'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 0
          3        DO_FCALL                                      0  $0      
          4        CONCAT                                           ~1      $0, '%0A'
          5        ECHO                                                     ~1
   11     6        INIT_FCALL                                               'arg'
          7        SEND_VAL                                                 0
          8        DO_FCALL                                      0  $2      
          9        CONCAT                                           ~3      $2, '%0A'
         10        ECHO                                                     ~3
   12    11        INIT_FCALL                                               'arg'
         12        DO_FCALL                                      0  $4      
         13        ECHO                                                     $4
         14      > RETURN                                                   1

Function arg:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/tu0Fh
function name:  arg
number of ops:  10
compiled vars:  !0 = $arg, !1 = $arg2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      null
          1        RECV_INIT                                        !1      null
    5     2        ISSET_ISEMPTY_CV                                 ~2      !0
          3      > JMPZ_EX                                          ~2      ~2, ->6
          4    >   ISSET_ISEMPTY_CV                                 ~3      !1
          5        BOOL                                             ~2      ~3
          6    >   BOOL_NOT                                         ~4      ~2
          7      > JMPZ                                                     ~4, ->9
    6     8    > > RETURN                                                   'error'
    8     9    > > RETURN                                                   null

End of function arg

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.67 ms | 1403 KiB | 16 Q