3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = ' The quick brown fox jumped over the lazy dog.'; $patterns = array(); $patterns[0] = x; $replacements = array(); $replacements[0] = ''; echo preg_replace('/^\s*/', '', $string); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kfCWF
function name:  (null)
number of ops:  15
compiled vars:  !0 = $string, !1 = $patterns, !2 = $replacements
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '++++The+quick+brown+fox+jumped+over+the+lazy+dog.'
    3     1        ASSIGN                                                   !1, <array>
    4     2        FETCH_CONSTANT                                   ~6      'x'
          3        ASSIGN_DIM                                               !1, 0
          4        OP_DATA                                                  ~6
    5     5        ASSIGN                                                   !2, <array>
    6     6        ASSIGN_DIM                                               !2, 0
          7        OP_DATA                                                  ''
    7     8        INIT_FCALL                                               'preg_replace'
          9        SEND_VAL                                                 '%2F%5E%5Cs%2A%2F'
         10        SEND_VAL                                                 ''
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $9      
         13        ECHO                                                     $9
    8    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.93 ms | 1394 KiB | 15 Q