3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = microtime(true); for ($i = 0; $i < 9000; $i++) { preg_match('/^[^\:]++(\:[^\:]++)*$/', '12345678901234567890:12345678901234567890'); preg_match('/^[^\:]++(\:[^\:]++)*$/', '1234567890123456789012345678901234567890:'); } echo (microtime(true) - $t);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 6
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 6
Branch analysis from position: 17
Branch analysis from position: 6
filename:       /in/PuvuL
function name:  (null)
number of ops:  23
compiled vars:  !0 = $t, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    5     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->15
    6     6    >   INIT_FCALL                                               'preg_match'
          7        SEND_VAL                                                 '%2F%5E%5B%5E%5C%3A%5D%2B%2B%28%5C%3A%5B%5E%5C%3A%5D%2B%2B%29%2A%24%2F'
          8        SEND_VAL                                                 '12345678901234567890%3A12345678901234567890'
          9        DO_ICALL                                                 
    7    10        INIT_FCALL                                               'preg_match'
         11        SEND_VAL                                                 '%2F%5E%5B%5E%5C%3A%5D%2B%2B%28%5C%3A%5B%5E%5C%3A%5D%2B%2B%29%2A%24%2F'
         12        SEND_VAL                                                 '1234567890123456789012345678901234567890%3A'
         13        DO_ICALL                                                 
    5    14        PRE_INC                                                  !1
         15    >   IS_SMALLER                                               !1, 9000
         16      > JMPNZ                                                    ~8, ->6
   11    17    >   INIT_FCALL                                               'microtime'
         18        SEND_VAL                                                 <true>
         19        DO_ICALL                                         $9      
         20        SUB                                              ~10     $9, !0
         21        ECHO                                                     ~10
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.2 ms | 1395 KiB | 17 Q