3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.94 ms | 1435 KiB | 14 Q