3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); $a = 1; function incr(){ global $a; return $a++; // $a is undefined } echo "tt"; echo incr();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A9RO1
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 0
          2        DO_ICALL                                                 
    4     3        ASSIGN                                                   !0, 1
   10     4        ECHO                                                     'tt'
   11     5        INIT_FCALL                                               'incr'
          6        DO_FCALL                                      0  $3      
          7        ECHO                                                     $3
          8      > RETURN                                                   1

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

End of function incr

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.45 ms | 1397 KiB | 16 Q