3v4l.org

run code in 500+ PHP versions simultaneously
<?php $path = "A000AA00"; $startA = microtime(true); for($i = 0; $i < 100000; $i++) { if (preg_match('~^[A-Z]\d{3}[A-Z]{2}\d{2}\z~', $path)) { // We good } } $endA = microtime(true); echo $endA-$startA;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 7
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 7
Branch analysis from position: 12
Branch analysis from position: 7
Branch analysis from position: 9
filename:       /in/ZONs1
function name:  (null)
number of ops:  19
compiled vars:  !0 = $path, !1 = $startA, !2 = $i, !3 = $endA
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'A000AA00'
    4     1        INIT_FCALL                                                   'microtime'
          2        SEND_VAL                                                     <true>
          3        DO_ICALL                                             $5      
          4        ASSIGN                                                       !1, $5
    5     5        ASSIGN                                                       !2, 0
          6      > JMP                                                          ->10
    7     7    >   FRAMELESS_ICALL_2                preg_match          ~8      '%7E%5E%5BA-Z%5D%5Cd%7B3%7D%5BA-Z%5D%7B2%7D%5Cd%7B2%7D%5Cz%7E', !0
          8      > JMPZ                                                         ~8, ->9
    5     9    >   PRE_INC                                                      !2
         10    >   IS_SMALLER                                                   !2, 100000
         11      > JMPNZ                                                        ~10, ->7
   10    12    >   INIT_FCALL                                                   'microtime'
         13        SEND_VAL                                                     <true>
         14        DO_ICALL                                             $11     
         15        ASSIGN                                                       !3, $11
   11    16        SUB                                                  ~13     !3, !1
         17        ECHO                                                         ~13
   12    18      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.32 ms | 1288 KiB | 15 Q