3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array ( 'tram B' => array ( 0 => array ( 'name' => 'Ile Verte' , 'distance' => 298, 'stationID' => 762, ), 1 => array ( 'name' => 'La Tronche Hôpital' , 'distance' => 425, 'stationID' => 771, ), ), 16 => array ( 0 => array ( 'name' => 'Bastille', 'distance' => 531, 'stationID' => 397 ), 1 => array ( 'name' => 'Xavier Jouvin', 'distance' => 589, 'stationID' => 438, ), ), ); $data['tram B'][1]['name'] = iconv('UTF8', 'ISO-8859-1', $data['tram B'][1]['name']); var_dump(json_encode($data));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TZEGA
function name:  (null)
number of ops:  21
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   36     1        INIT_FCALL_BY_NAME                                       'iconv'
          2        SEND_VAL_EX                                              'UTF8'
          3        SEND_VAL_EX                                              'ISO-8859-1'
          4        CHECK_FUNC_ARG                                           
          5        FETCH_DIM_FUNC_ARG                               $5      !0, 'tram+B'
          6        FETCH_DIM_FUNC_ARG                               $6      $5, 1
          7        FETCH_DIM_FUNC_ARG                               $7      $6, 'name'
          8        SEND_FUNC_ARG                                            $7
          9        DO_FCALL                                      0  $8      
         10        FETCH_DIM_W                                      $2      !0, 'tram+B'
         11        FETCH_DIM_W                                      $3      $2, 1
         12        ASSIGN_DIM                                               $3, 'name'
         13        OP_DATA                                                  $8
   38    14        INIT_FCALL                                               'var_dump'
         15        INIT_FCALL                                               'json_encode'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $9      
         18        SEND_VAR                                                 $9
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.2 ms | 1395 KiB | 17 Q