3v4l.org

run code in 300+ PHP versions simultaneously
<?php function parse($args) { $jobArgs = []; $list = explode(',', $args); foreach ($list as $item) { $splitArg = explode('=', $item); $jobArgs[$splitArg[0]] = $splitArg[1]; } return $jobArgs; } var_dump(parse("one=test,two=another,three=win"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ckbRg
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'parse'
          2        SEND_VAL                                                 'one%3Dtest%2Ctwo%3Danother%2Cthree%3Dwin'
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Function parse:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 19
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 19
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/ckbRg
function name:  parse
number of ops:  22
compiled vars:  !0 = $args, !1 = $jobArgs, !2 = $list, !3 = $item, !4 = $splitArg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        ASSIGN                                                   !1, <array>
    7     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%2C'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !2, $6
    9     7      > FE_RESET_R                                       $8      !2, ->19
          8    > > FE_FETCH_R                                               $8, !3, ->19
   11     9    >   INIT_FCALL                                               'explode'
         10        SEND_VAL                                                 '%3D'
         11        SEND_VAR                                                 !3
         12        DO_ICALL                                         $9      
         13        ASSIGN                                                   !4, $9
   12    14        FETCH_DIM_R                                      ~11     !4, 0
         15        FETCH_DIM_R                                      ~13     !4, 1
         16        ASSIGN_DIM                                               !1, ~11
         17        OP_DATA                                                  ~13
    9    18      > JMP                                                      ->8
         19    >   FE_FREE                                                  $8
   15    20      > RETURN                                                   !1
   16    21*     > RETURN                                                   null

End of function parse

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.8 ms | 1399 KiB | 18 Q