3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=['url'=>'foo&bar']; echo json_encode ( $a, 0 | ~ JSON_HEX_AMP ); echo json_encode ( $a ); echo json_encode ( $a, JSON_BIGINT_AS_STRING );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pcP9b
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'json_encode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 -3
          4        DO_ICALL                                         $2      
          5        ECHO                                                     $2
    5     6        INIT_FCALL                                               'json_encode'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $3      
          9        ECHO                                                     $3
    6    10        INIT_FCALL                                               'json_encode'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 2
         13        DO_ICALL                                         $4      
         14        ECHO                                                     $4
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.29 ms | 1394 KiB | 15 Q