3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.11 ms | 1394 KiB | 17 Q