3v4l.org

run code in 300+ PHP versions simultaneously
<?php // $aaa {} $aaa {} // parse it into variables // using php // $aaa {} $aaa {} $text { color: red;} $xfkskhlf {} $string = '$aaa {} $aaa {}'; var_dump(parseString($string)); function parseString($string) { $output = array(); //logic $string = explode("}", $string); foreach ($string as $key->$value) { $output[$key] = $value; } return $output ; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8AZLU
function name:  (null)
number of ops:  8
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, '%24aaa+%7B%7D+%24aaa+%7B%7D'
   11     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL_BY_NAME                                       'parseString'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0  $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
   22     7      > RETURN                                                   1

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

End of function parsestring

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
195.54 ms | 1396 KiB | 17 Q