3v4l.org

run code in 300+ PHP versions simultaneously
<?php function destroy_the_world() { echo "BOooM, it's g0ne!\n"; /* 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 "&\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 = 18, Position 2 = 21
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
Branch analysis from position: 7
filename:       /in/5aoos
function name:  (null)
number of ops:  22
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                                                     '%26%0A'
   10     8        INIT_FCALL                                               'check_if_we_should_destroy_the_world'
          9        DO_FCALL                                      0  $3      
         10        INIT_FCALL                                               'destroy_the_world'
         11        DO_FCALL                                      0  $4      
         12        BW_AND                                           ~5      $3, $4
         13        FREE                                                     ~5
   12    14        ECHO                                                     'and%0A'
   13    15        INIT_FCALL                                               'check_if_we_should_destroy_the_world'
         16        DO_FCALL                                      0  $6      
         17      > JMPZ_EX                                          ~7      $6, ->21
         18    >   INIT_FCALL                                               'destroy_the_world'
         19        DO_FCALL                                      0  $8      
         20        BOOL                                             ~7      $8
         21    > > RETURN                                                   1

Function destroy_the_world:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5aoos
function name:  destroy_the_world
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     'BOooM%2C+it%27s+g0ne%21%0A'
          1      > 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/5aoos
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:
148.72 ms | 1399 KiB | 19 Q