3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['M-am întîlnit ieri cu','fosta mea profă de matematică']; $encoded = json_encode($array); echo "Encoded:\n" . $encoded . "\n\n"; print_r(json_decode($encoded, true));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Smj2F
function name:  (null)
number of ops:  16
compiled vars:  !0 = $array, !1 = $encoded
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'json_encode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    7     5        CONCAT                                           ~5      'Encoded%3A%0A', !1
          6        CONCAT                                           ~6      ~5, '%0A%0A'
          7        ECHO                                                     ~6
    9     8        INIT_FCALL                                               'print_r'
          9        INIT_FCALL                                               'json_decode'
         10        SEND_VAR                                                 !1
         11        SEND_VAL                                                 <true>
         12        DO_ICALL                                         $7      
         13        SEND_VAR                                                 $7
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.71 ms | 1437 KiB | 16 Q