3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['foo' => 'bar']; print_r(serialize($array)); echo '<br>'; print_r(json_array($array));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/94ZTt
function name:  (null)
number of ops:  15
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'serialize'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
    6     7        ECHO                                                     '%3Cbr%3E'
    7     8        INIT_FCALL                                               'print_r'
          9        INIT_FCALL_BY_NAME                                       'json_array'
         10        SEND_VAR_EX                                              !0
         11        DO_FCALL                                      0  $4      
         12        SEND_VAR                                                 $4
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.98 ms | 1398 KiB | 17 Q