3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL | E_STRICT); $n = 10; nullArray(@$n); function nullArray( &$a) { return (is_array($a)) ? $a : array(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IWKbp
function name:  (null)
number of ops:  11
compiled vars:  !0 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
    4     3        ASSIGN                                                   !0, 10
    5     4        INIT_FCALL_BY_NAME                                       'nullArray'
          5        BEGIN_SILENCE                                    ~3      
          6        FETCH_R                      local               ~4      'n'
          7        END_SILENCE                                              ~3
          8        SEND_VAL_EX                                              ~4
          9        DO_FCALL                                      0          
   12    10      > RETURN                                                   1

Function nullarray:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IWKbp
function name:  nullArray
number of ops:  8
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
   11     1        TYPE_CHECK                                  128          !0
          2      > JMPZ                                                     ~1, ->5
          3    >   QM_ASSIGN                                        ~2      !0
          4      > JMP                                                      ->6
          5    >   QM_ASSIGN                                        ~2      <array>
          6    > > RETURN                                                   ~2
   12     7*     > RETURN                                                   null

End of function nullarray

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.26 ms | 1395 KiB | 15 Q