3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A { $a = 1; } namespace B { $b = 2; } namespace { echo $a . PHP_EOL; echo $b . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2qvrC
function name:  (null)
number of ops:  7
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 1
    7     1        ASSIGN                                                   !1, 2
   10     2        CONCAT                                           ~4      !0, '%0A'
          3        ECHO                                                     ~4
   11     4        CONCAT                                           ~5      !1, '%0A'
          5        ECHO                                                     ~5
   12     6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
126.52 ms | 984 KiB | 13 Q