3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = ''; for ($i = 0; $i < 10000; $i++) { $string .= chr(rand(65, 122)); } echo "Calling preg_match()\n"; preg_match('/(\D|3)*/', $string); echo "It didn't broke php\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 3
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 3
Branch analysis from position: 14
Branch analysis from position: 3
filename:       /in/RJt1X
function name:  (null)
number of ops:  19
compiled vars:  !0 = $string, !1 = $i
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, ''
    4     1        ASSIGN                                                       !1, 0
          2      > JMP                                                          ->12
    5     3    >   INIT_FCALL                                                   'chr'
          4        INIT_FCALL                                                   'rand'
          5        SEND_VAL                                                     65
          6        SEND_VAL                                                     122
          7        DO_ICALL                                             $4      
          8        SEND_VAR                                                     $4
          9        DO_ICALL                                             $5      
         10        ASSIGN_OP                                         8          !0, $5
    4    11        PRE_INC                                                      !1
         12    >   IS_SMALLER                                                   !1, 10000
         13      > JMPNZ                                                        ~8, ->3
    7    14    >   ECHO                                                         'Calling+preg_match%28%29%0A'
    8    15        FRAMELESS_ICALL_2                preg_match          ~9      '%2F%28%5CD%7C3%29%2A%2F', !0
         16        FREE                                                         ~9
   10    17        ECHO                                                         'It+didn%27t+broke+php%0A'
         18      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.77 ms | 2357 KiB | 17 Q