3v4l.org

run code in 300+ PHP versions simultaneously
<?php $is_main_query = false; $is_post_type_archive = false; if ( ! $is_main_query() ) return; if ( ! $is_post_type_archive() ) return; echo 'did it!';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BKPGV
function name:  (null)
number of ops:  14
compiled vars:  !0 = $is_main_query, !1 = $is_post_type_archive
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <false>
    4     1        ASSIGN                                                   !1, <false>
    6     2        INIT_DYNAMIC_CALL                                        !0
          3        DO_FCALL                                      0  $4      
          4        BOOL_NOT                                         ~5      $4
          5      > JMPZ                                                     ~5, ->7
          6    > > RETURN                                                   null
    7     7    >   INIT_DYNAMIC_CALL                                        !1
          8        DO_FCALL                                      0  $6      
          9        BOOL_NOT                                         ~7      $6
         10      > JMPZ                                                     ~7, ->12
         11    > > RETURN                                                   null
    8    12    >   ECHO                                                     'did+it%21'
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.48 ms | 1397 KiB | 13 Q