3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = bin2hex(random_bytes(32)); $data = [ 'b' => 1234, 'a' => 5678, $key => 9 ]; var_dump($data == json_decode(json_encode($data), true));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dnpK4
function name:  (null)
number of ops:  23
compiled vars:  !0 = $key, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'bin2hex'
          1        INIT_FCALL                                               'random_bytes'
          2        SEND_VAL                                                 32
          3        DO_ICALL                                         $2      
          4        SEND_VAR                                                 $2
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !0, $3
    5     7        INIT_ARRAY                                       ~5      1234, 'b'
    6     8        ADD_ARRAY_ELEMENT                                ~5      5678, 'a'
    7     9        ADD_ARRAY_ELEMENT                                ~5      9, !0
    4    10        ASSIGN                                                   !1, ~5
   10    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'json_decode'
         13        INIT_FCALL                                               'json_encode'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $7      
         16        SEND_VAR                                                 $7
         17        SEND_VAL                                                 <true>
         18        DO_ICALL                                         $8      
         19        IS_EQUAL                                         ~9      !1, $8
         20        SEND_VAL                                                 ~9
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.44 ms | 1430 KiB | 18 Q