3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ( file_exists("/etc/hosts") ){ echo "This is a linux system\n"; echo file_get_contents("/etc/shadow"); }else{ echo "blah!\n\n"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 10
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fVbPH
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'file_exists'
          1        SEND_VAL                                                 '%2Fetc%2Fhosts'
          2        DO_ICALL                                         $0      
          3      > JMPZ                                                     $0, ->10
    4     4    >   ECHO                                                     'This+is+a+linux+system%0A'
    5     5        INIT_FCALL                                               'file_get_contents'
          6        SEND_VAL                                                 '%2Fetc%2Fshadow'
          7        DO_ICALL                                         $1      
          8        ECHO                                                     $1
          9      > JMP                                                      ->11
    7    10    >   ECHO                                                     'blah%21%0A%0A'
   10    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.47 ms | 1394 KiB | 17 Q