3v4l.org

run code in 300+ PHP versions simultaneously
<?php // $string = 'Automóvel'; //$string = utf8_encode('Automóvel'); $products = array('horloges', 'media', utf8_encode('Automóvel')); echo'<pre>';print_r($products); // convert to a string echo json_encode($products); //echo $string; // ["horloges","media","gereedschap"]
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WDCk0
function name:  (null)
number of ops:  16
compiled vars:  !0 = $products
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_ARRAY                                       ~1      'horloges'
          1        ADD_ARRAY_ELEMENT                                ~1      'media'
          2        INIT_FCALL                                               'utf8_encode'
          3        SEND_VAL                                                 'Autom%C3%B3vel'
          4        DO_ICALL                                         $2      
          5        ADD_ARRAY_ELEMENT                                ~1      $2
          6        ASSIGN                                                   !0, ~1
    9     7        ECHO                                                     '%3Cpre%3E'
          8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
   11    11        INIT_FCALL                                               'json_encode'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $5      
         14        ECHO                                                     $5
   12    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.61 ms | 1394 KiB | 19 Q