3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-Type: text/plain'); $html = file_get_contents('http://www.happyaway.nl/invoice.htm'); $array = [ 'a' => 1, 'b' => 'string', 'c' => $html ]; $json = json_encode($array); echo $json, PHP_EOL; var_dump(json_decode($json));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f5MgD
function name:  (null)
number of ops:  24
compiled vars:  !0 = $html, !1 = $array, !2 = $json
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'header'
          1        SEND_VAL                                                 'Content-Type%3A+text%2Fplain'
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'file_get_contents'
          4        SEND_VAL                                                 'http%3A%2F%2Fwww.happyaway.nl%2Finvoice.htm'
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !0, $4
    7     7        INIT_ARRAY                                       ~6      1, 'a'
    8     8        ADD_ARRAY_ELEMENT                                ~6      'string', 'b'
    9     9        ADD_ARRAY_ELEMENT                                ~6      !0, 'c'
    6    10        ASSIGN                                                   !1, ~6
   12    11        INIT_FCALL                                               'json_encode'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $8      
         14        ASSIGN                                                   !2, $8
   13    15        ECHO                                                     !2
         16        ECHO                                                     '%0A'
   15    17        INIT_FCALL                                               'var_dump'
         18        INIT_FCALL                                               'json_decode'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                         $10     
         21        SEND_VAR                                                 $10
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.92 ms | 1395 KiB | 23 Q