3v4l.org

run code in 300+ PHP versions simultaneously
<?php function x () {echo 'ok';} echo x(1,2,3,4,5); $a = array(NULL => 1); echo $a[NULL]; function a($x) {var_dump($x);}; a();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IgRns
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'x'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 2
          3        SEND_VAL                                                 3
          4        SEND_VAL                                                 4
          5        SEND_VAL                                                 5
          6        DO_FCALL                                      0  $1      
          7        ECHO                                                     $1
    4     8        ASSIGN                                                   !0, <array>
          9        FETCH_DIM_R                                      ~3      !0, null
         10        ECHO                                                     ~3
    5    11        INIT_FCALL                                               'a'
         12        DO_FCALL                                      0          
         13      > RETURN                                                   1

Function x:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IgRns
function name:  x
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     'ok'
          1      > RETURN                                                   null

End of function x

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IgRns
function name:  a
number of ops:  5
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
          4      > RETURN                                                   null

End of function a

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.19 ms | 1402 KiB | 17 Q