3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '1392'; $arr = str_split($str); print_r($arr); echo $string = mb_convert_encoding($str); echo intval($string)+1;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8Kjqp
function name:  (null)
number of ops:  17
compiled vars:  !0 = $str, !1 = $arr, !2 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%EF%BC%91%EF%BC%93%EF%BC%99%EF%BC%92'
    4     1        INIT_FCALL                                               'str_split'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    5     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
    6     8        INIT_FCALL                                               'mb_convert_encoding'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $7      
         11        ASSIGN                                           ~8      !2, $7
         12        ECHO                                                     ~8
    7    13        CAST                                          4  ~9      !2
         14        ADD                                              ~10     ~9, 1
         15        ECHO                                                     ~10
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.5 ms | 1394 KiB | 19 Q