3v4l.org

run code in 300+ 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:  21
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        INIT_FCALL                                               'preg_match'
         16        SEND_VAL                                                 '%2F%28%5CD%7C3%29%2A%2F'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
   10    19        ECHO                                                     'It+didn%27t+broke+php%0A'
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.59 ms | 1395 KiB | 19 Q