3v4l.org

run code in 300+ PHP versions simultaneously
<?php $digits = '1234567890'; $alnum = '123test'; For($i = 0; $i < 1000000; $i++) { var_dump(preg_match('/^\d+$/D', $digits)); var_dump(preg_match('/^\d+$/D', $alnum)); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 4
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 4
Branch analysis from position: 21
Branch analysis from position: 4
filename:       /in/MPUK9
function name:  (null)
number of ops:  22
compiled vars:  !0 = $digits, !1 = $alnum, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1234567890'
    4     1        ASSIGN                                                   !1, '123test'
    6     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->19
    7     4    >   INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'preg_match'
          6        SEND_VAL                                                 '%2F%5E%5Cd%2B%24%2FD'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $6      
          9        SEND_VAR                                                 $6
         10        DO_ICALL                                                 
    8    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'preg_match'
         13        SEND_VAL                                                 '%2F%5E%5Cd%2B%24%2FD'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $8      
         16        SEND_VAR                                                 $8
         17        DO_ICALL                                                 
    6    18        PRE_INC                                                  !2
         19    >   IS_SMALLER                                               !2, 1000000
         20      > JMPNZ                                                    ~11, ->4
    9    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.6 ms | 1395 KiB | 17 Q