3v4l.org

run code in 300+ PHP versions simultaneously
<?php function splitallowescape($str) { preg_match_all('/(?:[^\x5c,]|\x5c(?:.|$))+/', $str, $matches); foreach($matches[0] as $key => $match) { $matches[0][$key] = str_replace(array("\\\\"),array("\\"),$row["name"]); } return $matches[0]; } var_dump(splitallowescape("a,b")) ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iuqkH
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'splitallowescape'
          2        SEND_VAL                                                 'a%2Cb'
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
   14     6      > RETURN                                                   1

Function splitallowescape:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 20
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 20
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/iuqkH
function name:  splitallowescape
number of ops:  24
compiled vars:  !0 = $str, !1 = $matches, !2 = $match, !3 = $key, !4 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%28%3F%3A%5B%5E%5Cx5c%2C%5D%7C%5Cx5c%28%3F%3A.%7C%24%29%29%2B%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    6     6        FETCH_DIM_R                                      ~6      !1, 0
          7      > FE_RESET_R                                       $7      ~6, ->20
          8    > > FE_FETCH_R                                       ~8      $7, !2, ->20
          9    >   ASSIGN                                                   !3, ~8
    8    10        INIT_FCALL                                               'str_replace'
         11        SEND_VAL                                                 <array>
         12        SEND_VAL                                                 <array>
         13        FETCH_DIM_R                                      ~12     !4, 'name'
         14        SEND_VAL                                                 ~12
         15        DO_ICALL                                         $13     
         16        FETCH_DIM_W                                      $10     !1, 0
         17        ASSIGN_DIM                                               $10, !3
         18        OP_DATA                                                  $13
    6    19      > JMP                                                      ->8
         20    >   FE_FREE                                                  $7
   10    21        FETCH_DIM_R                                      ~14     !1, 0
         22      > RETURN                                                   ~14
   11    23*     > RETURN                                                   null

End of function splitallowescape

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.44 ms | 1399 KiB | 20 Q