3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '1392'; $arr = str_split('',$str); print_r($arr); echo $string = wordwrap($str); echo intval($string)+1;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tdFWV
function name:  (null)
number of ops:  18
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_VAL                                                 ''
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    5     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'wordwrap'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $7      
         12        ASSIGN                                           ~8      !2, $7
         13        ECHO                                                     ~8
    7    14        CAST                                          4  ~9      !2
         15        ADD                                              ~10     ~9, 1
         16        ECHO                                                     ~10
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.97 ms | 1394 KiB | 19 Q