3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<<END { "Pet": { "type": "object", "required": [ "id" ], "properties": { "id": { "type": "integer", "format": "int64" } } }, "Dog": { "type": "object", "allOf": [ { "$ref": "#/definitions/Pet" }, { "required": [ "name" ], "properties": { "name": { "type": "string" } } } ], "x-vendor-ext": "some data" } } END; echo str_replace("\t", " ", $str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gsTCJ
function name:  (null)
number of ops:  11
compiled vars:  !0 = $str, !1 = $ref
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ROPE_INIT                                     3  ~3      '%7B%0A++%22Pet%22%3A+%7B%0A++++%22type%22%3A+%22object%22%2C%0A++++%22required%22%3A+%5B%0A++++++%22id%22%0A++++%5D%2C%0A++++%22properties%22%3A+%7B%0A++++++%22id%22%3A+%7B%0A++++++++%22type%22%3A+%22integer%22%2C%0A++++++++%22format%22%3A+%22int64%22%0A++++++%7D%0A++++%7D%0A++%7D%2C%0A++%22Dog%22%3A+%7B%0A++++%22type%22%3A+%22object%22%2C%0A++++++%22allOf%22%3A+%5B%0A++++++++%7B%0A++++++++++%22'
   21     1        ROPE_ADD                                      1  ~3      ~3, !1
          2        ROPE_END                                      2  ~2      ~3, '%22%3A+%22%23%2Fdefinitions%2FPet%22%0A++++++++%7D%2C%0A++++++++%7B%0A++++++++++%22required%22%3A+%5B%0A++++++++++++%22name%22%0A++++++++++%5D%2C%0A++++++++++%22properties%22%3A+%7B%0A++++++++++++%22name%22%3A+%7B%0A++++++++++++++%22type%22%3A+%22string%22%0A++++++++++++%7D%0A++++++++++%7D%0A++++++++%7D%0A++++++%5D%2C%0A++++%22x-vendor-ext%22%3A+%22some+data%22%0A++%7D%0A%7D'
    3     3        ASSIGN                                                   !0, ~2
   39     4        INIT_FCALL                                               'str_replace'
          5        SEND_VAL                                                 '%09'
          6        SEND_VAL                                                 '++'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $6      
          9        ECHO                                                     $6
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.09 ms | 1395 KiB | 15 Q