3v4l.org

run code in 300+ PHP versions simultaneously
<?php $p = 'Noticias Bogotá'; $text = json_encode(array("title"=>$p)); $i = implode(array("title"=>$p)); echo $i; echo mb_convert_encoding($text, "ISO-8859");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t1kPI
function name:  (null)
number of ops:  18
compiled vars:  !0 = $p, !1 = $text, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Noticias+Bogot%C3%A1'
    3     1        INIT_FCALL                                               'json_encode'
          2        INIT_ARRAY                                       ~4      !0, 'title'
          3        SEND_VAL                                                 ~4
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    4     6        INIT_FCALL                                               'implode'
          7        INIT_ARRAY                                       ~7      !0, 'title'
          8        SEND_VAL                                                 ~7
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !2, $8
    5    11        ECHO                                                     !2
    6    12        INIT_FCALL                                               'mb_convert_encoding'
         13        SEND_VAR                                                 !1
         14        SEND_VAL                                                 'ISO-8859'
         15        DO_ICALL                                         $10     
         16        ECHO                                                     $10
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.91 ms | 1399 KiB | 19 Q