3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ($foo = 'bar' && 'bar' === $foo) { var_dump('Yep!'); } else { var_dump('WUT?'); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CQtij
function name:  (null)
number of ops:  12
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   IS_IDENTICAL                                     ~1      !0, 'bar'
          1        BOOL                                             ~2      ~1
          2        ASSIGN                                           ~3      !0, ~2
          3      > JMPZ                                                     ~3, ->8
    4     4    >   INIT_FCALL                                               'var_dump'
          5        SEND_VAL                                                 'Yep%21'
          6        DO_ICALL                                                 
          7      > JMP                                                      ->11
    6     8    >   INIT_FCALL                                               'var_dump'
          9        SEND_VAL                                                 'WUT%3F'
         10        DO_ICALL                                                 
    7    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.34 ms | 1394 KiB | 15 Q