3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); function blaat() { global $a; return $a['foo'] = "bar"; } print blaat()."\n"; print_r($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q2dBm
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   11     1        INIT_FCALL                                               'blaat'
          2        DO_FCALL                                      0  $2      
          3        CONCAT                                           ~3      $2, '%0A'
          4        ECHO                                                     ~3
   12     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Function blaat:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q2dBm
function name:  blaat
number of ops:  5
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   BIND_GLOBAL                                              !0, 'a'
    8     1        ASSIGN_DIM                                       ~1      !0, 'foo'
          2        OP_DATA                                                  'bar'
          3      > RETURN                                                   ~1
    9     4*     > RETURN                                                   null

End of function blaat

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.58 ms | 1397 KiB | 16 Q