3v4l.org

run code in 300+ PHP versions simultaneously
<?php // $string = 'Automóvel'; //$string = utf8_encode('Automóvel'); $products = array('horloges', 'media', '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/QNkYr
function name:  (null)
number of ops:  10
compiled vars:  !0 = $products
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, <array>
    9     1        ECHO                                                     '%3Cpre%3E'
          2        INIT_FCALL                                               'print_r'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
   11     5        INIT_FCALL                                               'json_encode'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        ECHO                                                     $3
   12     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.99 ms | 1385 KiB | 17 Q