3v4l.org

run code in 300+ PHP versions simultaneously
<?php header ('Transfer-encoding: chunked'); flush(); ob_start(); $commandes = [ ['rm', '/etc/localtime'], ['ln', '-s', '/usr/share/zoneinfo/Europe/Paris', '/etc/localtime'], ['apt-get', 'update'], ['apt-get', '-y', 'upgrade'], ['debconf-set-selections', '/root/ldap_auth_config.debconf'], ['apt-get', 'install', '-y', 'ldap-auth-client', 'nscd'], ['auth-client-config', '-t','nss', '-p', 'lac_ldap'], ['apt-get', '-y', 'install', 'php', 'apache2', 'libapache2-mod-php'], ]; foreach($commandes as $command) { $outtext = sprintf ("Executing : %s\r\n", implode (' ', $command)); printf ("%x\r\n%s", strlen($outtext), $outtext); ob_flush(); flush(); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 30
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 30
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
filename:       /in/UiHPM
function name:  (null)
number of ops:  32
compiled vars:  !0 = $commandes, !1 = $command, !2 = $outtext
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'header'
          1        SEND_VAL                                                 'Transfer-encoding%3A+chunked'
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'flush'
          4        DO_ICALL                                                 
    4     5        INIT_FCALL                                               'ob_start'
          6        DO_ICALL                                                 
    6     7        ASSIGN                                                   !0, <array>
   16     8      > FE_RESET_R                                       $7      !0, ->30
          9    > > FE_FETCH_R                                               $7, !1, ->30
   17    10    >   INIT_FCALL                                               'sprintf'
         11        SEND_VAL                                                 'Executing+%3A+%25s%0D%0A'
         12        INIT_FCALL                                               'implode'
         13        SEND_VAL                                                 '+'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $8      
         16        SEND_VAR                                                 $8
         17        DO_ICALL                                         $9      
         18        ASSIGN                                                   !2, $9
   18    19        INIT_FCALL                                               'printf'
         20        SEND_VAL                                                 '%25x%0D%0A%25s'
         21        STRLEN                                           ~11     !2
         22        SEND_VAL                                                 ~11
         23        SEND_VAR                                                 !2
         24        DO_ICALL                                                 
   19    25        INIT_FCALL                                               'ob_flush'
         26        DO_ICALL                                                 
   20    27        INIT_FCALL                                               'flush'
         28        DO_ICALL                                                 
   16    29      > JMP                                                      ->9
         30    >   FE_FREE                                                  $7
   21    31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.3 ms | 1396 KiB | 27 Q