3v4l.org

run code in 500+ PHP versions simultaneously
<?php $body = <<<HTML <html> <body> <table> <tr><td>Hello</td></tr> </table> </body> </html> HTML; $output = $body; $start = strpos($output, "<table"); $end = strpos($output, "</table>"); $table = substr($output, $start, ($end - $start)); echo($table); ?> @@@@@@@
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dSevk
function name:  (null)
number of ops:  13
compiled vars:  !0 = $body, !1 = $output, !2 = $start, !3 = $end, !4 = $table
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%3Chtml%3E%0A%3Cbody%3E%0A%3Ctable%3E%0A%3Ctr%3E%3Ctd%3EHello%3C%2Ftd%3E%3C%2Ftr%3E%0A%3C%2Ftable%3E%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   13     1        ASSIGN                                                       !1, !0
   14     2        FRAMELESS_ICALL_2                strpos              ~7      !1, '%3Ctable'
          3        ASSIGN                                                       !2, ~7
   15     4        FRAMELESS_ICALL_2                strpos              ~9      !1, '%3C%2Ftable%3E'
          5        ASSIGN                                                       !3, ~9
   16     6        SUB                                                  ~11     !3, !2
          7        FRAMELESS_ICALL_3                substr              ~12     !1, !2
          8        OP_DATA                                                      ~11
          9        ASSIGN                                                       !4, ~12
   17    10        ECHO                                                         !4
   20    11        ECHO                                                         '%0A%40%40%40%40%40%40%40'
   21    12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
207.11 ms | 2716 KiB | 13 Q