3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.41 ms | 1394 KiB | 15 Q