3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.59 ms | 1006 KiB | 16 Q