3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); $a = "abcdefffefa"; for($i = 0; $i < 30; $i++) $a = $a . $a; $b = "afe"; print(str_replace(array_unique(str_split($b)), "", $a));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 6
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 6
Branch analysis from position: 11
Branch analysis from position: 6
filename:       /in/7FiEX
function name:  (null)
number of ops:  25
compiled vars:  !0 = $a, !1 = $i, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 0
          2        DO_ICALL                                                 
    5     3        ASSIGN                                                   !0, 'abcdefffefa'
    6     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->9
          6    >   CONCAT                                           ~6      !0, !0
          7        ASSIGN                                                   !0, ~6
          8        PRE_INC                                                  !1
          9    >   IS_SMALLER                                               !1, 30
         10      > JMPNZ                                                    ~9, ->6
    7    11    >   ASSIGN                                                   !2, 'afe'
    9    12        INIT_FCALL                                               'str_replace'
         13        INIT_FCALL                                               'array_unique'
         14        INIT_FCALL                                               'str_split'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                         $11     
         17        SEND_VAR                                                 $11
         18        DO_ICALL                                         $12     
         19        SEND_VAR                                                 $12
         20        SEND_VAL                                                 ''
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                         $13     
         23        ECHO                                                     $13
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.14 ms | 1395 KiB | 21 Q