3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['foo' => "a", 'bar' => "b"]; echo json_encode($array), "\n"; echo json_encode(json_decode(json_encode($array))), "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Mp4B2
function name:  (null)
number of ops:  18
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'json_encode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        ECHO                                                     $2
          5        ECHO                                                     '%0A'
    5     6        INIT_FCALL                                               'json_encode'
          7        INIT_FCALL                                               'json_decode'
          8        INIT_FCALL                                               'json_encode'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $3      
         11        SEND_VAR                                                 $3
         12        DO_ICALL                                         $4      
         13        SEND_VAR                                                 $4
         14        DO_ICALL                                         $5      
         15        ECHO                                                     $5
         16        ECHO                                                     '%0A'
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.88 ms | 1010 KiB | 15 Q