3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.19 ms | 1394 KiB | 15 Q