3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "1|John|Smith|company name\r\naddress\r\nwhat they did\r\n2|Amy|Doe|company name"; $new = joint(explode("\r\n",$str)); echo $new;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r1EkI
function name:  (null)
number of ops:  11
compiled vars:  !0 = $str, !1 = $new
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '1%7CJohn%7CSmith%7Ccompany+name%0D%0Aaddress%0D%0Awhat+they+did%0D%0A2%7CAmy%7CDoe%7Ccompany+name'
    3     1        INIT_FCALL_BY_NAME                                       'joint'
          2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%0D%0A'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        SEND_VAR_NO_REF_EX                                       $3
          7        DO_FCALL                                      0  $4      
          8        ASSIGN                                                   !1, $4
    4     9        ECHO                                                     !1
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.7 ms | 1394 KiB | 15 Q