3v4l.org

run code in 500+ PHP versions simultaneously
<?php $sql = "'" . str_repeat('a', 10*1024); $match = "/'(\'|\\{2}|[^'])*'/"; $sql = preg_replace($match, '', $sql); var_dump($sql);

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ejl8v
function name:  (null)
number of ops:  14
compiled vars:  !0 = $sql, !1 = $match
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'str_repeat'
          1        SEND_VAL                                                     'a'
          2        SEND_VAL                                                     10240
          3        DO_ICALL                                             $2      
          4        CONCAT                                               ~3      '%27', $2
          5        ASSIGN                                                       !0, ~3
    4     6        ASSIGN                                                       !1, '%2F%27%28%5C%27%7C%5C%7B2%7D%7C%5B%5E%27%5D%29%2A%27%2F'
    5     7        FRAMELESS_ICALL_3                preg_replace        ~6      !1, ''
          8        OP_DATA                                                      !0
          9        ASSIGN                                                       !0, ~6
    6    10        INIT_FCALL                                                   'var_dump'
         11        SEND_VAR                                                     !0
         12        DO_ICALL                                                     
         13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
188.27 ms | 4150 KiB | 15 Q