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; $str = str_replace("\t", " ", $str); $str = str_replace('"', '\"', $str); $lines = explode("\n", $str); foreach($lines as &$l) { $l = '"' . $l; } echo '"' . implode('\n" +' . "\n", $lines) . '"';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 19, Position 2 = 23
Branch analysis from position: 19
2 jumps found. (Code = 126) Position 1 = 20, Position 2 = 23
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/R8Z61
function name:  (null)
number of ops:  32
compiled vars:  !0 = $str, !1 = $lines, !2 = $l
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%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%24ref%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'
   39     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '%09'
          3        SEND_VAL                                                 '++'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !0, $4
   40     7        INIT_FCALL                                               'str_replace'
          8        SEND_VAL                                                 '%22'
          9        SEND_VAL                                                 '%5C%22'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !0, $6
   41    13        INIT_FCALL                                               'explode'
         14        SEND_VAL                                                 '%0A'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $8      
         17        ASSIGN                                                   !1, $8
   43    18      > FE_RESET_RW                                      $10     !1, ->23
         19    > > FE_FETCH_RW                                              $10, !2, ->23
   44    20    >   CONCAT                                           ~11     '%22', !2
         21        ASSIGN                                                   !2, ~11
   43    22      > JMP                                                      ->19
         23    >   FE_FREE                                                  $10
   47    24        INIT_FCALL                                               'implode'
         25        SEND_VAL                                                 '%5Cn%22+%2B%0A'
         26        SEND_VAR                                                 !1
         27        DO_ICALL                                         $13     
         28        CONCAT                                           ~14     '%22', $13
         29        CONCAT                                           ~15     ~14, '%22'
         30        ECHO                                                     ~15
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.39 ms | 1400 KiB | 19 Q