3v4l.org

run code in 300+ PHP versions simultaneously
<?php function table_valeur($table) { return $table['toto']; } $Pile['vars'][(string)'toto'] = 'tutu'; var_dump(table_valeur($Pile['vars']));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nqTUR
function name:  (null)
number of ops:  12
compiled vars:  !0 = $Pile
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   CAST                                          6  ~2      'toto'
          1        FETCH_DIM_W                                      $1      !0, 'vars'
          2        ASSIGN_DIM                                               $1, ~2
          3        OP_DATA                                                  'tutu'
    7     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'table_valeur'
          6        FETCH_DIM_R                                      ~4      !0, 'vars'
          7        SEND_VAL                                                 ~4
          8        DO_FCALL                                      0  $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Function table_valeur:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nqTUR
function name:  table_valeur
number of ops:  4
compiled vars:  !0 = $table
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        FETCH_DIM_R                                      ~1      !0, 'toto'
          2      > RETURN                                                   ~1
    4     3*     > RETURN                                                   null

End of function table_valeur

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.36 ms | 1401 KiB | 16 Q