3v4l.org

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

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Vq5Ig
function name:  test
number of ops:  11
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, null
    6     1        ROPE_INIT                                     3  ~3      'a+'
          2        ROPE_ADD                                      1  ~3      ~3, !0
          3        ROPE_END                                      2  ~2      ~3, '%0A'
          4        ECHO                                                     ~2
    8     5        ASSIGN                                                   !0, 'pizza'
   10     6        ROPE_INIT                                     3  ~7      'b+'
          7        ROPE_ADD                                      1  ~7      ~7, !0
          8        ROPE_END                                      2  ~6      ~7, '%0A'
          9        ECHO                                                     ~6
   11    10      > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.36 ms | 1015 KiB | 14 Q