3v4l.org

run code in 300+ PHP versions simultaneously
<?php $keyword = "wörtchen"; $json = array("context" => array(array("paragraph" => array(array("sentence" => array($keyword))) )) ); $json = json_encode($json); print_r($json);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3RqB6
function name:  (null)
number of ops:  16
compiled vars:  !0 = $keyword, !1 = $json
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'w%C3%B6rtchen'
    4     1        INIT_ARRAY                                       ~3      !0
          2        INIT_ARRAY                                       ~4      ~3, 'sentence'
          3        INIT_ARRAY                                       ~5      ~4
          4        INIT_ARRAY                                       ~6      ~5, 'paragraph'
          5        INIT_ARRAY                                       ~7      ~6
          6        INIT_ARRAY                                       ~8      ~7, 'context'
          7        ASSIGN                                                   !1, ~8
    5     8        INIT_FCALL                                               'json_encode'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $10     
         11        ASSIGN                                                   !1, $10
    7    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.29 ms | 1398 KiB | 17 Q