3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(preg_replace('/[\\]+/', '\\', 'Doctrine\DBAL')); var_dump(preg_replace('/[\\]+/', '\\', 'Doctrine\\DBAL')); var_dump(preg_replace('/[\\]+/', '\\', 'Doctrine\\\DBAL')); var_dump(preg_replace('/[\\]+/', '\\', 'Doctrine\\\\DBAL')); var_dump(preg_replace('/[\\]+/', '\\', 'Doctrine\\\\\DBAL')); var_dump(preg_replace('/[\\]+/', '\\', 'Doctrine\\\\\\DBAL')); var_dump(preg_replace('/[\\]+/', '\\', 'Doctrine\\\\\\\DBAL')); var_dump(preg_replace('/[\\]+/', '\\', 'Doctrine\\\\\\\\DBAL')); var_dump(preg_replace('/[\\]+/', '\\', 'Doctrine\\\\\\\\\DBAL'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OBjlT
function name:  (null)
number of ops:  73
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5B%5C%5D%2B%2F'
          3        SEND_VAL                                                 '%5C'
          4        SEND_VAL                                                 'Doctrine%5CDBAL'
          5        DO_ICALL                                         $0      
          6        SEND_VAR                                                 $0
          7        DO_ICALL                                                 
    4     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'preg_replace'
         10        SEND_VAL                                                 '%2F%5B%5C%5D%2B%2F'
         11        SEND_VAL                                                 '%5C'
         12        SEND_VAL                                                 'Doctrine%5CDBAL'
         13        DO_ICALL                                         $2      
         14        SEND_VAR                                                 $2
         15        DO_ICALL                                                 
    5    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'preg_replace'
         18        SEND_VAL                                                 '%2F%5B%5C%5D%2B%2F'
         19        SEND_VAL                                                 '%5C'
         20        SEND_VAL                                                 'Doctrine%5C%5CDBAL'
         21        DO_ICALL                                         $4      
         22        SEND_VAR                                                 $4
         23        DO_ICALL                                                 
    6    24        INIT_FCALL                                               'var_dump'
         25        INIT_FCALL                                               'preg_replace'
         26        SEND_VAL                                                 '%2F%5B%5C%5D%2B%2F'
         27        SEND_VAL                                                 '%5C'
         28        SEND_VAL                                                 'Doctrine%5C%5CDBAL'
         29        DO_ICALL                                         $6      
         30        SEND_VAR                                                 $6
         31        DO_ICALL                                                 
    7    32        INIT_FCALL                                               'var_dump'
         33        INIT_FCALL                                               'preg_replace'
         34        SEND_VAL                                                 '%2F%5B%5C%5D%2B%2F'
         35        SEND_VAL                                                 '%5C'
         36        SEND_VAL                                                 'Doctrine%5C%5C%5CDBAL'
         37        DO_ICALL                                         $8      
         38        SEND_VAR                                                 $8
         39        DO_ICALL                                                 
    8    40        INIT_FCALL                                               'var_dump'
         41        INIT_FCALL                                               'preg_replace'
         42        SEND_VAL                                                 '%2F%5B%5C%5D%2B%2F'
         43        SEND_VAL                                                 '%5C'
         44        SEND_VAL                                                 'Doctrine%5C%5C%5CDBAL'
         45        DO_ICALL                                         $10     
         46        SEND_VAR                                                 $10
         47        DO_ICALL                                                 
    9    48        INIT_FCALL                                               'var_dump'
         49        INIT_FCALL                                               'preg_replace'
         50        SEND_VAL                                                 '%2F%5B%5C%5D%2B%2F'
         51        SEND_VAL                                                 '%5C'
         52        SEND_VAL                                                 'Doctrine%5C%5C%5C%5CDBAL'
         53        DO_ICALL                                         $12     
         54        SEND_VAR                                                 $12
         55        DO_ICALL                                                 
   10    56        INIT_FCALL                                               'var_dump'
         57        INIT_FCALL                                               'preg_replace'
         58        SEND_VAL                                                 '%2F%5B%5C%5D%2B%2F'
         59        SEND_VAL                                                 '%5C'
         60        SEND_VAL                                                 'Doctrine%5C%5C%5C%5CDBAL'
         61        DO_ICALL                                         $14     
         62        SEND_VAR                                                 $14
         63        DO_ICALL                                                 
   11    64        INIT_FCALL                                               'var_dump'
         65        INIT_FCALL                                               'preg_replace'
         66        SEND_VAL                                                 '%2F%5B%5C%5D%2B%2F'
         67        SEND_VAL                                                 '%5C'
         68        SEND_VAL                                                 'Doctrine%5C%5C%5C%5C%5CDBAL'
         69        DO_ICALL                                         $16     
         70        SEND_VAR                                                 $16
         71        DO_ICALL                                                 
         72      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.4 ms | 1400 KiB | 17 Q