3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.38 ms | 1394 KiB | 15 Q