3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ''; $b = 'b'; $c = 'c'; for ($i = 0; $i < 10; $i++) { $a = $b . $c; } var_dump(strlen($a)); var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 5
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 5
Branch analysis from position: 10
Branch analysis from position: 5
filename:       /in/d5aXB
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, ''
    3     1        ASSIGN                                                   !1, 'b'
    4     2        ASSIGN                                                   !2, 'c'
    5     3        ASSIGN                                                   !3, 0
          4      > JMP                                                      ->8
    6     5    >   CONCAT                                           ~8      !1, !2
          6        ASSIGN                                                   !0, ~8
    5     7        PRE_INC                                                  !3
          8    >   IS_SMALLER                                               !3, 10
          9      > JMPNZ                                                    ~11, ->5
    8    10    >   INIT_FCALL                                               'var_dump'
         11        STRLEN                                           ~12     !0
         12        SEND_VAL                                                 ~12
         13        DO_ICALL                                                 
    9    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.19 ms | 1395 KiB | 15 Q