3v4l.org

run code in 300+ PHP versions simultaneously
<?php function nice() { return ['nice','toll']; } $test = nice()[0]; print_r($test);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/An3aO
function name:  (null)
number of ops:  8
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'nice'
          1        DO_FCALL                                      0  $1      
          2        FETCH_DIM_R                                      ~2      $1, 0
          3        ASSIGN                                                   !0, ~2
    9     4        INIT_FCALL                                               'print_r'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Function nice:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/An3aO
function name:  nice
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   <array>
    6     1*     > RETURN                                                   null

End of function nice

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.55 ms | 1388 KiB | 16 Q