3v4l.org

run code in 300+ PHP versions simultaneously
<?php $limit = 8345; $string = 'a'; for ( $i = 0; $i <= $limit; $i++ ) { $string .= 'a'; } echo strlen($string)."\n"; $str2=preg_replace('#(?<name>.)*#', '', $string); echo 'done';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 4
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 4
Branch analysis from position: 8
Branch analysis from position: 4
filename:       /in/cD0Me
function name:  (null)
number of ops:  19
compiled vars:  !0 = $limit, !1 = $string, !2 = $i, !3 = $str2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 8345
    3     1        ASSIGN                                                   !1, 'a'
    5     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->6
    6     4    >   ASSIGN_OP                                     8          !1, 'a'
    5     5        PRE_INC                                                  !2
          6    >   IS_SMALLER_OR_EQUAL                                      !2, !0
          7      > JMPNZ                                                    ~9, ->4
    8     8    >   STRLEN                                           ~10     !1
          9        CONCAT                                           ~11     ~10, '%0A'
         10        ECHO                                                     ~11
    9    11        INIT_FCALL                                               'preg_replace'
         12        SEND_VAL                                                 '%23%28%3F%3Cname%3E.%29%2A%23'
         13        SEND_VAL                                                 ''
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $12     
         16        ASSIGN                                                   !3, $12
   10    17        ECHO                                                     'done'
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.74 ms | 1395 KiB | 15 Q