3v4l.org

run code in 300+ PHP versions simultaneously
<?php $max_n=100010; $n=99900; $tmp_str=str_repeat('b',$n); $go=true; while (($go)&&($n<=$max_n)) { $n++; $tmp_str.='b'; $str='a'.$tmp_str.'a'; $go=preg_match('/a.*?a/sim', $str); if (!$go) { echo 'error on length '.strlen($str); die; } } echo ' ok';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 46) Position 1 = 26, Position 2 = 28
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 9
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 25
Branch analysis from position: 21
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 25
Branch analysis from position: 28
filename:       /in/uAh8b
function name:  (null)
number of ops:  31
compiled vars:  !0 = $max_n, !1 = $n, !2 = $tmp_str, !3 = $go, !4 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 100010
    3     1        ASSIGN                                                   !1, 99900
    4     2        INIT_FCALL                                               'str_repeat'
          3        SEND_VAL                                                 'b'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $7      
          6        ASSIGN                                                   !2, $7
    5     7        ASSIGN                                                   !3, <true>
    6     8      > JMP                                                      ->25
    7     9    >   PRE_INC                                                  !1
    8    10        ASSIGN_OP                                     8          !2, 'b'
    9    11        CONCAT                                           ~12     'a', !2
         12        CONCAT                                           ~13     ~12, 'a'
         13        ASSIGN                                                   !4, ~13
   10    14        INIT_FCALL                                               'preg_match'
         15        SEND_VAL                                                 '%2Fa.%2A%3Fa%2Fsim'
         16        SEND_VAR                                                 !4
         17        DO_ICALL                                         $15     
         18        ASSIGN                                                   !3, $15
   11    19        BOOL_NOT                                         ~17     !3
         20      > JMPZ                                                     ~17, ->25
   12    21    >   STRLEN                                           ~18     !4
         22        CONCAT                                           ~19     'error+on+length+', ~18
         23        ECHO                                                     ~19
   13    24      > EXIT                                                     
    6    25    > > JMPZ_EX                                          ~20     !3, ->28
         26    >   IS_SMALLER_OR_EQUAL                              ~21     !1, !0
         27        BOOL                                             ~20     ~21
         28    > > JMPNZ                                                    ~20, ->9
   16    29    >   ECHO                                                     '+ok'
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.28 ms | 1396 KiB | 17 Q