3v4l.org

run code in 300+ PHP versions simultaneously
<?php function pipeExplode($str) { return explode("|", $str); } $text = "sdlkfjsdl|kwflwerflwekr|wlkjlgk4w\n3rtljhrfgkjed|3jhkrjghd|4t44thj\n33rtlhwege|3rth3herjgke|hkjfgdf"; $arr = explode(PHP_EOL, $text); $finalArr = array_map('pipeExplode', $arr); print_r($finalArr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EM6Ct
function name:  (null)
number of ops:  15
compiled vars:  !0 = $text, !1 = $arr, !2 = $finalArr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, 'sdlkfjsdl%7Ckwflwerflwekr%7Cwlkjlgk4w%0A3rtljhrfgkjed%7C3jhkrjghd%7C4t44thj%0A33rtlhwege%7C3rth3herjgke%7Chkjfgdf'
    9     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%0A'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
   12     6        INIT_FCALL                                               'array_map'
          7        SEND_VAL                                                 'pipeExplode'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !2, $6
   13    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Function pipeexplode:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EM6Ct
function name:  pipeExplode
number of ops:  7
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%7C'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5      > RETURN                                                   $1
    6     6*     > RETURN                                                   null

End of function pipeexplode

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.43 ms | 1012 KiB | 16 Q