3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str='TABLE cancer ATTRIBUTES 4 Attribute1.1 numeric O Attribute1.2 numeric O Attribute1.3 numeric 0 Attribute1.4 numeric 0 OBJECTS 6 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24'; $line = ' Attribute1.2 numeric O '; preg_match_all('/[\w\d\.]+/', $line, $line); $line=implode(' ', $line[0]); var_dump(' ', $line); exit; foreach (preg_split("/\\r\\n|\\r|\\n/", $str) as $line) { preg_match_all('/[\w\d\.]+/', $line, $result); var_dump(implode(' ', $result[0])); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/WLmuX
function name:  (null)
number of ops:  40
compiled vars:  !0 = $str, !1 = $line, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'TABLE+cancer%0AATTRIBUTES+4%0AAttribute1.1++++numeric++++++++++O%0A++++Attribute1.2+numeric++++++++++++++++++++++++O%0A++++++++++++Attribute1.3+numeric+0%0A+++Attribute1.4+++++numeric+0%0AOBJECTS+6%0A1+2+3+4%0A5+6+7+8%0A9+10+11+12%0A13+++++++++++14+15+16%0A17+18+19+20%0A21+22+23+24'
   16     1        ASSIGN                                                   !1, '++++Attribute1.2+numeric++++++++++++++++++++++++O++'
   17     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAL                                                 '%2F%5B%5Cw%5Cd%5C.%5D%2B%2F'
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !1
          6        DO_ICALL                                                 
   18     7        INIT_FCALL                                               'implode'
          8        SEND_VAL                                                 '+'
          9        FETCH_DIM_R                                      ~6      !1, 0
         10        SEND_VAL                                                 ~6
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !1, $7
   19    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAL                                                 '+'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
   21    17      > EXIT                                                     
   22    18*       INIT_FCALL                                               'preg_split'
         19*       SEND_VAL                                                 '%2F%5Cr%5Cn%7C%5Cr%7C%5Cn%2F'
         20*       SEND_VAR                                                 !0
         21*       DO_ICALL                                         $10     
         22*       FE_RESET_R                                       $11     $10, ->38
         23*       FE_FETCH_R                                               $11, !1, ->38
   23    24*       INIT_FCALL                                               'preg_match_all'
         25*       SEND_VAL                                                 '%2F%5B%5Cw%5Cd%5C.%5D%2B%2F'
         26*       SEND_VAR                                                 !1
         27*       SEND_REF                                                 !2
         28*       DO_ICALL                                                 
   24    29*       INIT_FCALL                                               'var_dump'
         30*       INIT_FCALL                                               'implode'
         31*       SEND_VAL                                                 '+'
         32*       FETCH_DIM_R                                      ~13     !2, 0
         33*       SEND_VAL                                                 ~13
         34*       DO_ICALL                                         $14     
         35*       SEND_VAR                                                 $14
         36*       DO_ICALL                                                 
   22    37*       JMP                                                      ->23
         38*       FE_FREE                                                  $11
   34    39*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.43 ms | 1388 KiB | 21 Q