3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ($a = 100 && $b = 200) { var_dump($a, $b); } var_dump(1111); 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 = 13, Position 2 = 15
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 20
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
Branch analysis from position: 15
Branch analysis from position: 8
filename:       /in/SgR7H
function name:  (null)
number of ops:  21
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                                                 
    6     8    >   INIT_FCALL                                               'var_dump'
          9        SEND_VAL                                                 1111
         10        DO_ICALL                                                 
    8    11        ASSIGN                                           ~7      !0, 100
         12      > JMPZ_EX                                          ~7      ~7, ->15
         13    >   ASSIGN                                           ~8      !1, 200
         14        BOOL                                             ~7      ~8
         15    > > JMPZ                                                     ~7, ->20
    9    16    >   INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !0
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                                 
   12    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.83 ms | 1395 KiB | 15 Q