3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<<END { "swagger": "2.0", "paths": { "/": { "get": { "responses": { "200": { "description": "OK" } } } } }, "definitions": { "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 = 22, Position 2 = 26
Branch analysis from position: 22
2 jumps found. (Code = 126) Position 1 = 23, Position 2 = 26
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
filename:       /in/IEPWM
function name:  (null)
number of ops:  34
compiled vars:  !0 = $str, !1 = $ref, !2 = $lines, !3 = $l
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ROPE_INIT                                     3  ~5      '%7B%0A++++%22swagger%22%3A+%222.0%22%2C%0A++++%22paths%22%3A+%7B%0A++++++++%22%2F%22%3A+%7B%0A++++++++++++%22get%22%3A+%7B%0A++++++++++++++++%22responses%22%3A+%7B%0A++++++++++++++++++++%22200%22%3A+%7B%0A++++++++++++++++++++++++%22description%22%3A+%22OK%22%0A++++++++++++++++++++%7D%0A++++++++++++++++%7D%0A++++++++++++%7D%0A++++++++%7D%0A++++%7D%2C%0A++++%22definitions%22%3A+%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'
   34     1        ROPE_ADD                                      1  ~5      ~5, !1
          2        ROPE_END                                      2  ~4      ~5, '%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%0A%7D'
    3     3        ASSIGN                                                   !0, ~4
   53     4        INIT_FCALL                                               'str_replace'
          5        SEND_VAL                                                 '%09'
          6        SEND_VAL                                                 '++'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $8      
          9        ASSIGN                                                   !0, $8
   54    10        INIT_FCALL                                               'str_replace'
         11        SEND_VAL                                                 '%22'
         12        SEND_VAL                                                 '%5C%22'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $10     
         15        ASSIGN                                                   !0, $10
   55    16        INIT_FCALL                                               'explode'
         17        SEND_VAL                                                 '%0A'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $12     
         20        ASSIGN                                                   !2, $12
   57    21      > FE_RESET_RW                                      $14     !2, ->26
         22    > > FE_FETCH_RW                                              $14, !3, ->26
   58    23    >   CONCAT                                           ~15     '%22', !3
         24        ASSIGN                                                   !3, ~15
   57    25      > JMP                                                      ->22
         26    >   FE_FREE                                                  $14
   61    27        INIT_FCALL                                               'implode'
         28        SEND_VAL                                                 '%5Cn%22+%2B%0A'
         29        SEND_VAR                                                 !2
         30        DO_ICALL                                         $17     
         31        CONCAT                                           ~18     $17, '%22%3B'
         32        ECHO                                                     ~18
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
190.56 ms | 1400 KiB | 19 Q