3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$view = insertAtPosition('/views/index/signin.phtml'); function insertAtPosition($string, $insert, $position) { return implode($insert, str_split($string, $position)); } echo str_split('/' , '/views/index/signin.phtml');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bmubV
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'str_split'
          1        SEND_VAL                                                 '%2F'
          2        SEND_VAL                                                 '%2Fviews%2Findex%2Fsignin.phtml'
          3        DO_ICALL                                         $0      
          4        ECHO                                                     $0
          5      > RETURN                                                   1

Function insertatposition:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bmubV
function name:  insertAtPosition
number of ops:  13
compiled vars:  !0 = $string, !1 = $insert, !2 = $position
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    5     3        INIT_FCALL                                               'implode'
          4        SEND_VAR                                                 !1
          5        INIT_FCALL                                               'str_split'
          6        SEND_VAR                                                 !0
          7        SEND_VAR                                                 !2
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                         $4      
         11      > RETURN                                                   $4
    6    12*     > RETURN                                                   null

End of function insertatposition

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.78 ms | 1399 KiB | 17 Q