3v4l.org

run code in 300+ PHP versions simultaneously
<?php $exp = "ukuran:33,34,35;warna:putih,hitam"; Preg_match_all("/(\d+)|([a-zA-Z]+)/", $exp, $matches); Unset($matches[0]); $matches[1] = array_filter($matches[1]); $matches[2] = array_filter($matches[2]); Var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cREn7
function name:  (null)
number of ops:  23
compiled vars:  !0 = $exp, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'ukuran%3A33%2C34%2C35%3Bwarna%3Aputih%2Chitam'
    5     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%28%5Cd%2B%29%7C%28%5Ba-zA-Z%5D%2B%29%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    7     6        UNSET_DIM                                                !1, 0
    8     7        INIT_FCALL                                               'array_filter'
          8        FETCH_DIM_R                                      ~5      !1, 1
          9        SEND_VAL                                                 ~5
         10        DO_ICALL                                         $6      
         11        ASSIGN_DIM                                               !1, 1
         12        OP_DATA                                                  $6
    9    13        INIT_FCALL                                               'array_filter'
         14        FETCH_DIM_R                                      ~8      !1, 2
         15        SEND_VAL                                                 ~8
         16        DO_ICALL                                         $9      
         17        ASSIGN_DIM                                               !1, 2
         18        OP_DATA                                                  $9
   10    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.64 ms | 1012 KiB | 16 Q