3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('json' => json_encode(array('name' => 'Testikauppa', 'mode' => 'test', 'shop_token' => 'om3ntAv01S_Xc'))); echo json_encode($array, JSON_PRETTY_PRINT); echo json_encode($array, JSON_PRETTY_PRINT, 2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bIXQ1
function name:  (null)
number of ops:  17
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_encode'
          1        SEND_VAL                                                 <array>
          2        DO_ICALL                                         $1      
          3        INIT_ARRAY                                       ~2      $1, 'json'
          4        ASSIGN                                                   !0, ~2
    6     5        INIT_FCALL                                               'json_encode'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 128
          8        DO_ICALL                                         $4      
          9        ECHO                                                     $4
    7    10        INIT_FCALL                                               'json_encode'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 128
         13        SEND_VAL                                                 2
         14        DO_ICALL                                         $5      
         15        ECHO                                                     $5
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153 ms | 1394 KiB | 15 Q