3v4l.org

run code in 300+ PHP versions simultaneously
<?php $customData = "===== description ===== Description test"; $arr = preg_split('#={5}\s+([^=]+)\s+={5}#', $customData, -1, PREG_SPLIT_DELIM_CAPTURE); $data = array(); for ($i=1, $l=sizeof($arr); $i<$l; $i+=2) { echo trim($arr[$i]); } //print_r($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 13
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 13
Branch analysis from position: 21
Branch analysis from position: 13
filename:       /in/M4OY9
function name:  (null)
number of ops:  22
compiled vars:  !0 = $customData, !1 = $arr, !2 = $data, !3 = $i, !4 = $l
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3D%3D%3D%3D%3D+description+%3D%3D%3D%3D%3D%0ADescription+test'
    5     1        INIT_FCALL                                               'preg_split'
          2        SEND_VAL                                                 '%23%3D%7B5%7D%5Cs%2B%28%5B%5E%3D%5D%2B%29%5Cs%2B%3D%7B5%7D%23'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 -1
          5        SEND_VAL                                                 2
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !1, $6
    6     8        ASSIGN                                                   !2, <array>
    7     9        ASSIGN                                                   !3, 1
         10        COUNT                                            ~10     !1
         11        ASSIGN                                                   !4, ~10
         12      > JMP                                                      ->19
    8    13    >   INIT_FCALL                                               'trim'
         14        FETCH_DIM_R                                      ~12     !1, !3
         15        SEND_VAL                                                 ~12
         16        DO_ICALL                                         $13     
         17        ECHO                                                     $13
    7    18        ASSIGN_OP                                     1          !3, 2
         19    >   IS_SMALLER                                               !3, !4
         20      > JMPNZ                                                    ~15, ->13
   10    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.12 ms | 1400 KiB | 17 Q