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 $string = 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/jE34p
function name:  (null)
number of ops:  21
compiled vars:  !0 = $string, !1 = $products
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'utf8_encode'
          1        SEND_VAL                                                 'Autom%C3%B3vel'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    8     4        INIT_ARRAY                                       ~4      'horloges'
          5        ADD_ARRAY_ELEMENT                                ~4      'media'
          6        INIT_FCALL                                               'utf8_encode'
          7        SEND_VAL                                                 'Autom%C3%B3vel'
          8        DO_ICALL                                         $5      
          9        ADD_ARRAY_ELEMENT                                ~4      $5
         10        ASSIGN                                                   !1, ~4
    9    11        ECHO                                                     '%3Cpre%3E'
         12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
   11    15        INIT_FCALL                                               'json_encode'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                         $8      
         18        ASSIGN                                                   !0, $8
   12    19        ECHO                                                     !0
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.06 ms | 1386 KiB | 19 Q