3v4l.org

run code in 300+ PHP versions simultaneously
<?php $letter = 's'; for ($i = 0; $i < 1000000; $i++) { if (preg_match('/^[a-zA-Z]$/', $letter) !== 1) { throw new \InvalidArgumentException(); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
Branch analysis from position: 3
filename:       /in/2fDOc
function name:  (null)
number of ops:  16
compiled vars:  !0 = $letter, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 's'
    3     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->13
    4     3    >   INIT_FCALL                                               'preg_match'
          4        SEND_VAL                                                 '%2F%5E%5Ba-zA-Z%5D%24%2F'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        IS_NOT_IDENTICAL                                         $4, 1
          8      > JMPZ                                                     ~5, ->12
    5     9    >   NEW                                              $6      'InvalidArgumentException'
         10        DO_FCALL                                      0          
         11      > THROW                                         0          $6
    3    12    >   PRE_INC                                                  !1
         13    >   IS_SMALLER                                               !1, 1000000
         14      > JMPNZ                                                    ~9, ->3
    7    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.3 ms | 1395 KiB | 15 Q