3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ( file_exists("/etc/hosts") ){ echo "This is a linux system\n"; if(is_callable("system")){ echo "System is available\n"; system("uname -a"); }elseif(is_callable("shell_exec")){ echo "Shell_exec is available\n"; }elseif(is_callable("exec")){ echo "exec is available\n"; }else{ echo "No dice:(";} }else{ echo "blah!\n\n"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 28
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 26
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ruJbV
function name:  (null)
number of ops:  30
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, ->28
    4     4    >   ECHO                                                     'This+is+a+linux+system%0A'
    5     5        INIT_FCALL                                               'is_callable'
          6        SEND_VAL                                                 'system'
          7        DO_ICALL                                         $1      
          8      > JMPZ                                                     $1, ->14
          9    >   ECHO                                                     'System+is+available%0A'
         10        INIT_FCALL                                               'system'
         11        SEND_VAL                                                 'uname+-a'
         12        DO_ICALL                                                 
         13      > JMP                                                      ->27
    6    14    >   INIT_FCALL                                               'is_callable'
         15        SEND_VAL                                                 'shell_exec'
         16        DO_ICALL                                         $3      
         17      > JMPZ                                                     $3, ->20
         18    >   ECHO                                                     'Shell_exec+is+available%0A'
         19      > JMP                                                      ->27
    7    20    >   INIT_FCALL                                               'is_callable'
         21        SEND_VAL                                                 'exec'
         22        DO_ICALL                                         $4      
         23      > JMPZ                                                     $4, ->26
         24    >   ECHO                                                     'exec+is+available%0A'
         25      > JMP                                                      ->27
    8    26    >   ECHO                                                     'No+dice%3A%28'
         27    > > JMP                                                      ->29
   10    28    >   ECHO                                                     'blah%21%0A%0A'
   13    29    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.39 ms | 1396 KiB | 19 Q