3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 'greg,lydia,derek,rachelle,kayla,diane,brian'; $array = split(',',$x,50); foreach( $array as $key => $value ){ echo $key."\t=>\t".$value."\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/D7bAj
function name:  (null)
number of ops:  17
compiled vars:  !0 = $x, !1 = $array, !2 = $value, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'greg%2Clydia%2Cderek%2Crachelle%2Ckayla%2Cdiane%2Cbrian'
    4     1        INIT_FCALL_BY_NAME                                       'split'
          2        SEND_VAL_EX                                              '%2C'
          3        SEND_VAR_EX                                              !0
          4        SEND_VAL_EX                                              50
          5        DO_FCALL                                      0  $5      
          6        ASSIGN                                                   !1, $5
    6     7      > FE_RESET_R                                       $7      !1, ->15
          8    > > FE_FETCH_R                                       ~8      $7, !2, ->15
          9    >   ASSIGN                                                   !3, ~8
    7    10        CONCAT                                           ~10     !3, '%09%3D%3E%09'
         11        CONCAT                                           ~11     ~10, !2
         12        CONCAT                                           ~12     ~11, '%0A'
         13        ECHO                                                     ~12
    6    14      > JMP                                                      ->8
         15    >   FE_FREE                                                  $7
    8    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.03 ms | 1394 KiB | 13 Q