3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.16 ms | 1394 KiB | 15 Q