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_all()\n"; preg_match_all('/(\D|3)*/', $string, $matches); 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/WBN9a
function name:  (null)
number of ops:  22
compiled vars:  !0 = $string, !1 = $i, !2 = $matches
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                                         $5      
          8        SEND_VAR                                                 $5
          9        DO_ICALL                                         $6      
         10        ASSIGN_OP                                     8          !0, $6
    4    11        PRE_INC                                                  !1
         12    >   IS_SMALLER                                               !1, 10000
         13      > JMPNZ                                                    ~9, ->3
    7    14    >   ECHO                                                     'Calling+preg_match_all%28%29%0A'
    8    15        INIT_FCALL                                               'preg_match_all'
         16        SEND_VAL                                                 '%2F%28%5CD%7C3%29%2A%2F'
         17        SEND_VAR                                                 !0
         18        SEND_REF                                                 !2
         19        DO_ICALL                                                 
   10    20        ECHO                                                     'It+didn%27t+broke+php%0A'
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.79 ms | 1395 KiB | 19 Q