3v4l.org

run code in 300+ PHP versions simultaneously
<?php function value(array $s) { $s = array(1); $args = func_get_args(); $s = array_shift($args); return ($s[0] == 2); } var_dump(value(array(2)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rco9k
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'value'
          2        SEND_VAL                                                 <array>
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Function value:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rco9k
function name:  value
number of ops:  12
compiled vars:  !0 = $s, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        ASSIGN                                                   !0, <array>
    6     2        FUNC_GET_ARGS                                    ~3      
          3        ASSIGN                                                   !1, ~3
    7     4        INIT_FCALL                                               'array_shift'
          5        SEND_REF                                                 !1
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !0, $5
    9     8        FETCH_DIM_R                                      ~7      !0, 0
          9        IS_EQUAL                                         ~8      ~7, 2
         10      > RETURN                                                   ~8
   10    11*     > RETURN                                                   null

End of function value

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.97 ms | 1397 KiB | 18 Q