3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ($a = 100 && $b = 200) { var_dump($a, $b); } if (($a = 100) && ($b = 200)) { var_dump($a, $b); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
2 jumps found. (Code = 46) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 17
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
Branch analysis from position: 12
Branch analysis from position: 8
filename:       /in/FavOe
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                           ~2      !1, 200
          1        BOOL                                             ~3      ~2
          2        ASSIGN                                           ~4      !0, ~3
          3      > JMPZ                                                     ~4, ->8
    4     4    >   INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
    7     8    >   ASSIGN                                           ~6      !0, 100
          9      > JMPZ_EX                                          ~6      ~6, ->12
         10    >   ASSIGN                                           ~7      !1, 200
         11        BOOL                                             ~6      ~7
         12    > > JMPZ                                                     ~6, ->17
    8    13    >   INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
   11    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.26 ms | 1395 KiB | 15 Q