3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = ''; function parseConditionString($sConditions) { $aConditions = array(); $aTmp = explode('@@', $sConditions); foreach ($aTmp as $sTmp) { $aParts = explode(';', $sTmp); $aConditions[$aParts[0]] = $aParts[1]; } return $aConditions; } $var = parseConditionString($string); print_r($var);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r80pq
function name:  (null)
number of ops:  9
compiled vars:  !0 = $string, !1 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, ''
   15     1        INIT_FCALL                                               'parseconditionstring'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $3      
          4        ASSIGN                                                   !1, $3
   16     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Function parseconditionstring:
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/r80pq
function name:  parseConditionString
number of ops:  22
compiled vars:  !0 = $sConditions, !1 = $aConditions, !2 = $aTmp, !3 = $sTmp, !4 = $aParts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        ASSIGN                                                   !1, <array>
    6     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%40%40'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !2, $6
    7     7      > FE_RESET_R                                       $8      !2, ->19
          8    > > FE_FETCH_R                                               $8, !3, ->19
    8     9    >   INIT_FCALL                                               'explode'
         10        SEND_VAL                                                 '%3B'
         11        SEND_VAR                                                 !3
         12        DO_ICALL                                         $9      
         13        ASSIGN                                                   !4, $9
    9    14        FETCH_DIM_R                                      ~11     !4, 0
         15        FETCH_DIM_R                                      ~13     !4, 1
         16        ASSIGN_DIM                                               !1, ~11
         17        OP_DATA                                                  ~13
    7    18      > JMP                                                      ->8
         19    >   FE_FREE                                                  $8
   12    20      > RETURN                                                   !1
   13    21*     > RETURN                                                   null

End of function parseconditionstring

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.08 ms | 1398 KiB | 18 Q