3v4l.org

run code in 300+ PHP versions simultaneously
<?php $match=preg_replace('~(..)*~','', str_repeat('.', 9431) ); var_dump($match);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bg5t6
function name:  (null)
number of ops:  14
compiled vars:  !0 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_replace'
          1        SEND_VAL                                                 '%7E%28..%29%2A%7E'
          2        SEND_VAL                                                 ''
          3        INIT_FCALL                                               'str_repeat'
          4        SEND_VAL                                                 '.'
          5        SEND_VAL                                                 9431
          6        DO_ICALL                                         $1      
          7        SEND_VAR                                                 $1
          8        DO_ICALL                                         $2      
          9        ASSIGN                                                   !0, $2
    3    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.65 ms | 1385 KiB | 19 Q