3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 'foo' => 'lorem some text', 'html' => htmlentities('<div class="col-md-12"'), ); print_r($array); print_r(json_encode($array));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/spDaY
function name:  (null)
number of ops:  16
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_ARRAY                                       ~1      'lorem+some+text', 'foo'
    7     1        INIT_FCALL                                               'htmlentities'
          2        SEND_VAL                                                 '%3Cdiv+class%3D%22col-md-12%22'
          3        DO_ICALL                                         $2      
          4        ADD_ARRAY_ELEMENT                                ~1      $2, 'html'
    5     5        ASSIGN                                                   !0, ~1
   10     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
   12     9        INIT_FCALL                                               'print_r'
         10        INIT_FCALL                                               'json_encode'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $5      
         13        SEND_VAR                                                 $5
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.1 ms | 1385 KiB | 19 Q