3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test1 = TRUE; $test2 = FALSE; $hantei1 = $test1 && $test2; $hantei2 = $test1 || $test2; $hantei3 = !$test1; var_dump(hantei1); var_dump(hantei2); var_dump(hantei3);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
2 jumps found. (Code = 47) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
Branch analysis from position: 4
filename:       /in/pHGG0
function name:  (null)
number of ops:  23
compiled vars:  !0 = $test1, !1 = $test2, !2 = $hantei1, !3 = $hantei2, !4 = $hantei3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <true>
    4     1        ASSIGN                                                   !1, <false>
    5     2      > JMPZ_EX                                          ~7      !0, ->4
          3    >   BOOL                                             ~7      !1
          4    >   ASSIGN                                                   !2, ~7
    6     5      > JMPNZ_EX                                         ~9      !0, ->7
          6    >   BOOL                                             ~9      !1
          7    >   ASSIGN                                                   !3, ~9
    7     8        BOOL_NOT                                         ~11     !0
          9        ASSIGN                                                   !4, ~11
    8    10        INIT_FCALL                                               'var_dump'
         11        FETCH_CONSTANT                                   ~13     'hantei1'
         12        SEND_VAL                                                 ~13
         13        DO_ICALL                                                 
    9    14        INIT_FCALL                                               'var_dump'
         15        FETCH_CONSTANT                                   ~15     'hantei2'
         16        SEND_VAL                                                 ~15
         17        DO_ICALL                                                 
   10    18        INIT_FCALL                                               'var_dump'
         19        FETCH_CONSTANT                                   ~17     'hantei3'
         20        SEND_VAL                                                 ~17
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.69 ms | 1395 KiB | 15 Q