3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_results = ['value' => 42, 'otehr' => 33 ]; $html = "<div>" . "<div class='className'>" . $_results['value'] . "</div>" . "</div>"; echo json_encode(array('html'=> $html, 'otherValue' => $_results['otehr']));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h4bOj
function name:  (null)
number of ops:  14
compiled vars:  !0 = $_results, !1 = $html
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    6     1        FETCH_DIM_R                                      ~3      !0, 'value'
          2        CONCAT                                           ~4      '%3Cdiv%3E%3Cdiv+class%3D%27className%27%3E', ~3
          3        CONCAT                                           ~5      ~4, '%3C%2Fdiv%3E'
    7     4        CONCAT                                           ~6      ~5, '%3C%2Fdiv%3E'
    5     5        ASSIGN                                                   !1, ~6
    9     6        INIT_FCALL                                               'json_encode'
          7        INIT_ARRAY                                       ~8      !1, 'html'
          8        FETCH_DIM_R                                      ~9      !0, 'otehr'
          9        ADD_ARRAY_ELEMENT                                ~8      ~9, 'otherValue'
         10        SEND_VAL                                                 ~8
         11        DO_ICALL                                         $10     
         12        ECHO                                                     $10
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.78 ms | 1009 KiB | 14 Q