3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = '{"test1":"something1","test2":"something2","test3":"something3"}'; print_r(json_encode(json_decode($a, true), JSON_PRETTY_PRINT));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CEc3L
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%22test1%22%3A%22something1%22%2C%22test2%22%3A%22something2%22%2C%22test3%22%3A%22something3%22%7D'
    4     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'json_encode'
          3        INIT_FCALL                                               'json_decode'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 <true>
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        SEND_VAL                                                 128
          9        DO_ICALL                                         $3      
         10        SEND_VAR                                                 $3
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.2 ms | 1394 KiB | 19 Q