3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { $result = 1; foreach (func_get_args() as $arg) { if (is_numeric($arg)) { $result *= $arg; } } return $result; } print foo( 1, "2", "0x03", 4, 'five'); print "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qaWL7
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'foo'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 '2'
          3        SEND_VAL                                                 '0x03'
          4        SEND_VAL                                                 4
          5        SEND_VAL                                                 'five'
          6        DO_FCALL                                      0  $0      
          7        ECHO                                                     $0
   15     8        ECHO                                                     '%0A'
          9      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 10
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 10
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 = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 9
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/qaWL7
function name:  foo
number of ops:  13
compiled vars:  !0 = $result, !1 = $arg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
    4     1        FUNC_GET_ARGS                                    ~3      
          2      > FE_RESET_R                                       $4      ~3, ->10
          3    > > FE_FETCH_R                                               $4, !1, ->10
    5     4    >   INIT_FCALL                                               'is_numeric'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $5      
          7      > JMPZ                                                     $5, ->9
    6     8    >   ASSIGN_OP                                     3          !0, !1
    4     9    > > JMP                                                      ->3
         10    >   FE_FREE                                                  $4
   10    11      > RETURN                                                   !0
   11    12*     > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.25 ms | 1399 KiB | 16 Q