3v4l.org

run code in 300+ PHP versions simultaneously
<?php ob_start(); date_default_timezone_set('UTC'); phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES); $phpinfo = ob_get_contents(); ob_end_clean(); preg_match_all('#<body[^>]*>(.*)</body>#siU', $phpinfo, $output); $output = preg_replace('#<table[^>]*>#', '<table class="table table-striped adminlist">', $output[1][0]); $output = preg_replace('#(\w),(\w)#', '\1, \2', $output); $output = preg_replace('#<hr />#', '', $output); $output = str_replace('<div class="center">', '', $output); $output = preg_replace('#<tr class="h">(.*)<\/tr>#', '<thead><tr class="h">$1</tr></thead><tbody>', $output); $output = str_replace('</table>', '</tbody></table>', $output); $output = str_replace('</div>', '', $output); $phpinfo = $output; echo $phpinfo;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ds4Lo
function name:  (null)
number of ops:  65
compiled vars:  !0 = $phpinfo, !1 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'ob_start'
          1        DO_ICALL                                                 
    3     2        INIT_FCALL                                               'date_default_timezone_set'
          3        SEND_VAL                                                 'UTC'
          4        DO_ICALL                                                 
    4     5        INIT_FCALL                                               'phpinfo'
          6        SEND_VAL                                                 13
          7        DO_ICALL                                                 
    5     8        INIT_FCALL                                               'ob_get_contents'
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !0, $5
    6    11        INIT_FCALL                                               'ob_end_clean'
         12        DO_ICALL                                                 
    7    13        INIT_FCALL                                               'preg_match_all'
         14        SEND_VAL                                                 '%23%3Cbody%5B%5E%3E%5D%2A%3E%28.%2A%29%3C%2Fbody%3E%23siU'
         15        SEND_VAR                                                 !0
         16        SEND_REF                                                 !1
         17        DO_ICALL                                                 
    8    18        INIT_FCALL                                               'preg_replace'
         19        SEND_VAL                                                 '%23%3Ctable%5B%5E%3E%5D%2A%3E%23'
         20        SEND_VAL                                                 '%3Ctable+class%3D%22table+table-striped+adminlist%22%3E'
         21        FETCH_DIM_R                                      ~9      !1, 1
         22        FETCH_DIM_R                                      ~10     ~9, 0
         23        SEND_VAL                                                 ~10
         24        DO_ICALL                                         $11     
         25        ASSIGN                                                   !1, $11
    9    26        INIT_FCALL                                               'preg_replace'
         27        SEND_VAL                                                 '%23%28%5Cw%29%2C%28%5Cw%29%23'
         28        SEND_VAL                                                 '%5C1%2C+%5C2'
         29        SEND_VAR                                                 !1
         30        DO_ICALL                                         $13     
         31        ASSIGN                                                   !1, $13
   10    32        INIT_FCALL                                               'preg_replace'
         33        SEND_VAL                                                 '%23%3Chr+%2F%3E%23'
         34        SEND_VAL                                                 ''
         35        SEND_VAR                                                 !1
         36        DO_ICALL                                         $15     
         37        ASSIGN                                                   !1, $15
   11    38        INIT_FCALL                                               'str_replace'
         39        SEND_VAL                                                 '%3Cdiv+class%3D%22center%22%3E'
         40        SEND_VAL                                                 ''
         41        SEND_VAR                                                 !1
         42        DO_ICALL                                         $17     
         43        ASSIGN                                                   !1, $17
   12    44        INIT_FCALL                                               'preg_replace'
         45        SEND_VAL                                                 '%23%3Ctr+class%3D%22h%22%3E%28.%2A%29%3C%5C%2Ftr%3E%23'
         46        SEND_VAL                                                 '%3Cthead%3E%3Ctr+class%3D%22h%22%3E%241%3C%2Ftr%3E%3C%2Fthead%3E%3Ctbody%3E'
         47        SEND_VAR                                                 !1
         48        DO_ICALL                                         $19     
         49        ASSIGN                                                   !1, $19
   13    50        INIT_FCALL                                               'str_replace'
         51        SEND_VAL                                                 '%3C%2Ftable%3E'
         52        SEND_VAL                                                 '%3C%2Ftbody%3E%3C%2Ftable%3E'
         53        SEND_VAR                                                 !1
         54        DO_ICALL                                         $21     
         55        ASSIGN                                                   !1, $21
   14    56        INIT_FCALL                                               'str_replace'
         57        SEND_VAL                                                 '%3C%2Fdiv%3E'
         58        SEND_VAL                                                 ''
         59        SEND_VAR                                                 !1
         60        DO_ICALL                                         $23     
         61        ASSIGN                                                   !1, $23
   15    62        ASSIGN                                                   !0, !1
   16    63        ECHO                                                     !0
         64      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.44 ms | 1400 KiB | 29 Q