3v4l.org

run code in 300+ PHP versions simultaneously
<?php $output = '<div class="center"> <table border="0" cellpadding="3" width="600"> <tr><td class="e">ctype functions </td><td class="v">enabled </td></tr> </table><br /> <table></table>'; $output1 = preg_replace('#<table[^>]*>#', '<table class="table table-striped adminlist">', $output); echo $output[1][0] . PHP_EOL . PHP_EOL . $output1;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CtcZn
function name:  (null)
number of ops:  14
compiled vars:  !0 = $output, !1 = $output1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cdiv+class%3D%22center%22%3E%0A%3Ctable+border%3D%220%22+cellpadding%3D%223%22+width%3D%22600%22%3E%0A%3Ctr%3E%3Ctd+class%3D%22e%22%3Ectype+functions+%3C%2Ftd%3E%3Ctd+class%3D%22v%22%3Eenabled+%3C%2Ftd%3E%3C%2Ftr%3E%0A%3C%2Ftable%3E%3Cbr+%2F%3E%0A%3Ctable%3E%3C%2Ftable%3E'
    7     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%23%3Ctable%5B%5E%3E%5D%2A%3E%23'
          3        SEND_VAL                                                 '%3Ctable+class%3D%22table+table-striped+adminlist%22%3E'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    8     7        FETCH_DIM_R                                      ~5      !0, 1
          8        FETCH_DIM_R                                      ~6      ~5, 0
          9        CONCAT                                           ~7      ~6, '%0A'
         10        CONCAT                                           ~8      ~7, '%0A'
         11        CONCAT                                           ~9      ~8, !1
         12        ECHO                                                     ~9
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.89 ms | 1394 KiB | 15 Q