3v4l.org

run code in 300+ PHP versions simultaneously
<?php function destroy_the_world() { /* rm -rf etc */ } function check_if_we_should_destroy_the_world() { return false; /* meh, it's not time yet */ } echo "&&\n"; check_if_we_should_destroy_the_world() && destroy_the_world(); echo "and\n"; check_if_we_should_destroy_the_world() and destroy_the_world();
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
Branch analysis from position: 7
filename:       /in/SRGig
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                     '%26%26%0A'
    7     1        INIT_FCALL                                               'check_if_we_should_destroy_the_world'
          2        DO_FCALL                                      0  $0      
          3      > JMPZ_EX                                          ~1      $0, ->7
          4    >   INIT_FCALL                                               'destroy_the_world'
          5        DO_FCALL                                      0  $2      
          6        BOOL                                             ~1      $2
    9     7    >   ECHO                                                     'and%0A'
   10     8        INIT_FCALL                                               'check_if_we_should_destroy_the_world'
          9        DO_FCALL                                      0  $3      
         10      > JMPZ_EX                                          ~4      $3, ->14
         11    >   INIT_FCALL                                               'destroy_the_world'
         12        DO_FCALL                                      0  $5      
         13        BOOL                                             ~4      $5
         14    > > RETURN                                                   1

Function destroy_the_world:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SRGig
function name:  destroy_the_world
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > RETURN                                                   null

End of function destroy_the_world

Function check_if_we_should_destroy_the_world:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SRGig
function name:  check_if_we_should_destroy_the_world
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   <false>
          1*     > RETURN                                                   null

End of function check_if_we_should_destroy_the_world

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.48 ms | 1399 KiB | 17 Q