3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '5453453 5345365647567,985735 34543534656 53464445656'; $phones = []; $lines = \preg_split('/' . PHP_EOL . '/', $text); foreach($lines as $line){ $phones[] = \explode(',', $line); } print_r($phones);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 16
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 16
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/LQp3H
function name:  (null)
number of ops:  21
compiled vars:  !0 = $text, !1 = $phones, !2 = $lines, !3 = $line
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '5453453%0A5345365647567%2C985735%0A34543534656%0A53464445656'
    7     1        ASSIGN                                                   !1, <array>
    8     2        INIT_FCALL                                               'preg_split'
          3        SEND_VAL                                                 '%2F%0A%2F'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !2, $6
    9     7      > FE_RESET_R                                       $8      !2, ->16
          8    > > FE_FETCH_R                                               $8, !3, ->16
   10     9    >   INIT_FCALL                                               'explode'
         10        SEND_VAL                                                 '%2C'
         11        SEND_VAR                                                 !3
         12        DO_ICALL                                         $10     
         13        ASSIGN_DIM                                               !1
         14        OP_DATA                                                  $10
    9    15      > JMP                                                      ->8
         16    >   FE_FREE                                                  $8
   12    17        INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.35 ms | 1395 KiB | 19 Q