3v4l.org

run code in 300+ PHP versions simultaneously
<?php ob_start(); ?> a>x{'id_mensagem':'123'} <?php $ret = ob_get_contents(); ob_end_clean(); $pos =strpos($ret, '{'); echo substr($ret,$pos); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m9KhR
function name:  (null)
number of ops:  19
compiled vars:  !0 = $ret, !1 = $pos
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'ob_start'
          1        DO_ICALL                                                 
    4     2        ECHO                                                     'a%3Ex%7B%27id_mensagem%27%3A%27123%27%7D%0A'
    6     3        INIT_FCALL                                               'ob_get_contents'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !0, $3
    7     6        INIT_FCALL                                               'ob_end_clean'
          7        DO_ICALL                                                 
    9     8        INIT_FCALL                                               'strpos'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 '%7B'
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !1, $6
   10    13        INIT_FCALL                                               'substr'
         14        SEND_VAR                                                 !0
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $8      
         17        ECHO                                                     $8
   12    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
185.72 ms | 1394 KiB | 23 Q