3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = null; $y = $x || 5; echo $y; $x = 3; $y = $x || 5; echo $y;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 2, Position 2 = 3
Branch analysis from position: 2
2 jumps found. (Code = 47) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
Branch analysis from position: 3
filename:       /in/83KDv
function name:  (null)
number of ops:  11
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, null
    4     1      > JMPNZ_EX                                         ~3      !0, ->3
          2    >   BOOL                                             ~3      5
          3    >   ASSIGN                                                   !1, ~3
    5     4        ECHO                                                     !1
    7     5        ASSIGN                                                   !0, 3
    8     6      > JMPNZ_EX                                         ~6      !0, ->8
          7    >   BOOL                                             ~6      5
          8    >   ASSIGN                                                   !1, ~6
    9     9        ECHO                                                     !1
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.6 ms | 1392 KiB | 13 Q