3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = array("url" => sprintf("/una/%s/de/%s", "prueba", "url")); json_encode($json);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MKA1R
function name:  (null)
number of ops:  11
compiled vars:  !0 = $json
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'sprintf'
          1        SEND_VAL                                                 '%2Funa%2F%25s%2Fde%2F%25s'
          2        SEND_VAL                                                 'prueba'
          3        SEND_VAL                                                 'url'
          4        DO_ICALL                                         $1      
          5        INIT_ARRAY                                       ~2      $1, 'url'
          6        ASSIGN                                                   !0, ~2
    3     7        INIT_FCALL                                               'json_encode'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.83 ms | 1394 KiB | 17 Q