3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stylestr = 'text-align:center;display:block;'; $_style = array(); preg_match_all('#(.*?):(.*?);#', $stylestr, $matches); foreach($matches[1] as $index => $key) $_style[$key]=$matches[2][$index]; $_style = array_combine($matches[1], $matches[2]); var_dump($_style);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 16
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 16
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/PRvbn
function name:  (null)
number of ops:  28
compiled vars:  !0 = $stylestr, !1 = $_style, !2 = $matches, !3 = $key, !4 = $index
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'text-align%3Acenter%3Bdisplay%3Ablock%3B'
    3     1        ASSIGN                                                   !1, <array>
    4     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAL                                                 '%23%28.%2A%3F%29%3A%28.%2A%3F%29%3B%23'
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    5     7        FETCH_DIM_R                                      ~8      !2, 1
          8      > FE_RESET_R                                       $9      ~8, ->16
          9    > > FE_FETCH_R                                       ~10     $9, !3, ->16
         10    >   ASSIGN                                                   !4, ~10
         11        FETCH_DIM_R                                      ~13     !2, 2
         12        FETCH_DIM_R                                      ~14     ~13, !4
         13        ASSIGN_DIM                                               !1, !3
         14        OP_DATA                                                  ~14
         15      > JMP                                                      ->9
         16    >   FE_FREE                                                  $9
    6    17        INIT_FCALL                                               'array_combine'
         18        FETCH_DIM_R                                      ~15     !2, 1
         19        SEND_VAL                                                 ~15
         20        FETCH_DIM_R                                      ~16     !2, 2
         21        SEND_VAL                                                 ~16
         22        DO_ICALL                                         $17     
         23        ASSIGN                                                   !1, $17
    7    24        INIT_FCALL                                               'var_dump'
         25        SEND_VAR                                                 !1
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.55 ms | 1396 KiB | 19 Q