3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new stdClass; $obj->property = '<a href="/some/link" target="_blank">link\'s text</a>'; print json_encode($obj);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jvYo7
function name:  (null)
number of ops:  10
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    4     3        ASSIGN_OBJ                                               !0, 'property'
          4        OP_DATA                                                  '%3Ca+href%3D%22%2Fsome%2Flink%22+target%3D%22_blank%22%3Elink%27s+text%3C%2Fa%3E'
    6     5        INIT_FCALL                                               'json_encode'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $5      
          8        ECHO                                                     $5
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
202.25 ms | 1385 KiB | 15 Q