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"; if(check_if_we_should_destroy_the_world() && destroy_the_world()) {} echo "and\n"; if(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 = 43) Position 1 = 8, Position 2 = 8
Branch analysis from position: 8
2 jumps found. (Code = 46) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
Branch analysis from position: 15
Branch analysis from position: 8
Branch analysis from position: 7
filename:       /in/KJCj0
function name:  (null)
number of ops:  17
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
          7    > > JMPZ                                                     ~1, ->8
    9     8    >   ECHO                                                     'and%0A'
   10     9        INIT_FCALL                                               'check_if_we_should_destroy_the_world'
         10        DO_FCALL                                      0  $3      
         11      > JMPZ_EX                                          ~4      $3, ->15
         12    >   INIT_FCALL                                               'destroy_the_world'
         13        DO_FCALL                                      0  $5      
         14        BOOL                                             ~4      $5
         15    > > JMPZ                                                     ~4, ->16
         16    > > RETURN                                                   1

Function destroy_the_world:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KJCj0
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/KJCj0
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:
165.18 ms | 1399 KiB | 17 Q