3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['drupal/core' => TRUE]; var_dump(json_encode($a)); var_dump(json_encode($a, JSON_UNESCAPED_SLASHES)); var_dump(json_decode(json_encode($a))); var_dump(json_decode(json_encode($a, JSON_UNESCAPED_SLASHES)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/492Qn
function name:  (null)
number of ops:  34
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'json_encode'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'json_encode'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 64
         11        DO_ICALL                                         $4      
         12        SEND_VAR                                                 $4
         13        DO_ICALL                                                 
    7    14        INIT_FCALL                                               'var_dump'
         15        INIT_FCALL                                               'json_decode'
         16        INIT_FCALL                                               'json_encode'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $6      
         19        SEND_VAR                                                 $6
         20        DO_ICALL                                         $7      
         21        SEND_VAR                                                 $7
         22        DO_ICALL                                                 
    8    23        INIT_FCALL                                               'var_dump'
         24        INIT_FCALL                                               'json_decode'
         25        INIT_FCALL                                               'json_encode'
         26        SEND_VAR                                                 !0
         27        SEND_VAL                                                 64
         28        DO_ICALL                                         $9      
         29        SEND_VAR                                                 $9
         30        DO_ICALL                                         $10     
         31        SEND_VAR                                                 $10
         32        DO_ICALL                                                 
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.14 ms | 1435 KiB | 16 Q