3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* +-------------------------------------------------------------+ | Copyright (c) 2015 Facebook, Inc. (http://www.facebook.com) | +-------------------------------------------------------------+ */ error_reporting(-1); ///* // $result = `dir *.*`; $result = `ls`; var_dump($result); //*/ ///* // $result = `dir *.* >dirlist.txt`; $result = `ls >dirlist.txt`; var_dump($result); unlink('dirlist.txt'); //*/ ///* $d = "dir"; $f = "*.*"; // $result = `$d {$f}`; $result = `ls`; var_dump($result); //*/ ///* $result = ``; var_dump($result); $result = ` `; var_dump($result); //*/
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MmEm7
function name:  (null)
number of ops:  44
compiled vars:  !0 = $result, !1 = $d, !2 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 -1
          2        DO_ICALL                                                 
   13     3        INIT_FCALL                                               'shell_exec'
          4        SEND_VAL                                                 'ls'
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !0, $4
   14     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
   19    10        INIT_FCALL                                               'shell_exec'
         11        SEND_VAL                                                 'ls+%3Edirlist.txt'
         12        DO_ICALL                                         $7      
         13        ASSIGN                                                   !0, $7
   20    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
   21    17        INIT_FCALL                                               'unlink'
         18        SEND_VAL                                                 'dirlist.txt'
         19        DO_ICALL                                                 
   25    20        ASSIGN                                                   !1, 'dir'
   26    21        ASSIGN                                                   !2, '%2A.%2A'
   28    22        INIT_FCALL                                               'shell_exec'
         23        SEND_VAL                                                 'ls'
         24        DO_ICALL                                         $13     
         25        ASSIGN                                                   !0, $13
   29    26        INIT_FCALL                                               'var_dump'
         27        SEND_VAR                                                 !0
         28        DO_ICALL                                                 
   33    29        INIT_FCALL                                               'shell_exec'
         30        SEND_VAL                                                 ''
         31        DO_ICALL                                         $16     
         32        ASSIGN                                                   !0, $16
   34    33        INIT_FCALL                                               'var_dump'
         34        SEND_VAR                                                 !0
         35        DO_ICALL                                                 
   36    36        INIT_FCALL                                               'shell_exec'
         37        SEND_VAL                                                 '++'
         38        DO_ICALL                                         $19     
         39        ASSIGN                                                   !0, $19
   37    40        INIT_FCALL                                               'var_dump'
         41        SEND_VAR                                                 !0
         42        DO_ICALL                                                 
   38    43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.39 ms | 1009 KiB | 17 Q