3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = '/(\w+) \(Vendeur : \'([^\']*)\' \/ Amazon : \'([^\']*)\'/m'; $s = 'correspondent à l\'ASIN B00WU8XXXX, mais les attributs suivants sont en conflit avec : product_type (Vendeur : \'APPLIANCE_ACCESSORY\' / Amazon : \'CLEANING_AGENT\'), ean (Vendeur : \'400650819XXXX\' / Amazon : \'400650819XXXX\'), item_package_quantity (Vendeur : \'5\' / Amazon : \'10\''; if(preg_match_all($pattern, $s, $matches, PREG_SET_ORDER)) { print_r(array_map(fn($m) => implode(" : ", array_slice($m, 1)), $matches)); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 17
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/MhIdu
function name:  (null)
number of ops:  18
compiled vars:  !0 = $pattern, !1 = $s, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2F%28%5Cw%2B%29+%5C%28Vendeur+%3A+%27%28%5B%5E%27%5D%2A%29%27+%5C%2F+Amazon+%3A+%27%28%5B%5E%27%5D%2A%29%27%2Fm'
    4     1        ASSIGN                                                   !1, 'correspondent+%C3%A0+l%27ASIN+B00WU8XXXX%2C+mais+les+attributs+suivants+sont+en+conflit+avec+%3A+product_type+%28Vendeur+%3A+%27APPLIANCE_ACCESSORY%27+%2F+Amazon+%3A+%27CLEANING_AGENT%27%29%2C+ean+%28Vendeur+%3A+%27400650819XXXX%27+%2F+Amazon+%3A+%27400650819XXXX%27%29%2C+item_package_quantity+%28Vendeur+%3A+%275%27+%2F+Amazon+%3A+%2710%27'
    6     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        SEND_VAL                                                 2
          7        DO_ICALL                                         $5      
          8      > JMPZ                                                     $5, ->17
    7     9    >   INIT_FCALL                                               'print_r'
         10        INIT_FCALL                                               'array_map'
         11        DECLARE_LAMBDA_FUNCTION                          ~6      [0]
         12        SEND_VAL                                                 ~6
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                         $7      
         15        SEND_VAR                                                 $7
         16        DO_ICALL                                                 
    8    17    > > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MhIdu
function name:  {closure}
number of ops:  11
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'implode'
          2        SEND_VAL                                                 '+%3A+'
          3        INIT_FCALL                                               'array_slice'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 1
          6        DO_ICALL                                         $1      
          7        SEND_VAR                                                 $1
          8        DO_ICALL                                         $2      
          9      > RETURN                                                   $2
         10*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.69 ms | 1003 KiB | 18 Q