3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { echo @"A{$a}B\n"; static $a = 1; $a++; echo @"C{$a}D\n"; } foo(); foo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hfkP3
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'foo'
          1        DO_FCALL                                      0          
    4     2        INIT_FCALL                                               'foo'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hfkP3
function name:  foo
number of ops:  15
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   BEGIN_SILENCE                                    ~1      
          1        ROPE_INIT                                     3  ~3      'A'
          2        ROPE_ADD                                      1  ~3      ~3, !0
          3        ROPE_END                                      2  ~2      ~3, 'B%0A'
          4        END_SILENCE                                              ~1
          5        ECHO                                                     ~2
          6        BIND_STATIC                                              !0
          7        PRE_INC                                                  !0
          8        BEGIN_SILENCE                                    ~6      
          9        ROPE_INIT                                     3  ~8      'C'
         10        ROPE_ADD                                      1  ~8      ~8, !0
         11        ROPE_END                                      2  ~7      ~8, 'D%0A'
         12        END_SILENCE                                              ~6
         13        ECHO                                                     ~7
         14      > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.62 ms | 1397 KiB | 15 Q