3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.85 ms | 1393 KiB | 13 Q