3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); error_reporting(E_ALL); $tmp = ''; $tmp2= ''; $counter = 0; while(++$counter <= 100) { $tmp = 'tmp_' . (string)$counter; $tmp2= $tmp; } if ($counter === 100) { $tmp = 'tmp_hardcoded'; } var_dump($tmp); var_dump($tmp2); var_dump($tmp === 'tmp_hardcoded'); var_dump($tmp === 'tmp_100');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 7
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 17
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 7
Branch analysis from position: 14
Branch analysis from position: 7
filename:       /in/4nsO2
function name:  (null)
number of ops:  32
compiled vars:  !0 = $tmp, !1 = $tmp2, !2 = $counter
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'error_reporting'
          1        SEND_VAL                                                     30719
          2        DO_ICALL                                                     
    5     3        ASSIGN                                                       !0, ''
    6     4        ASSIGN                                                       !1, ''
    7     5        ASSIGN                                                       !2, 0
    8     6      > JMP                                                          ->11
    9     7    >   CAST                                              6  ~7      !2
          8        CONCAT                                               ~8      'tmp_', ~7
          9        ASSIGN                                                       !0, ~8
   10    10        ASSIGN                                                       !1, !0
    8    11    >   PRE_INC                                              ~11     !2
         12        IS_SMALLER_OR_EQUAL                                          ~11, 100
         13      > JMPNZ                                                        ~12, ->7
   12    14    >   IS_IDENTICAL                                                 !2, 100
         15      > JMPZ                                                         ~13, ->17
   13    16    >   ASSIGN                                                       !0, 'tmp_hardcoded'
   16    17    >   INIT_FCALL                                                   'var_dump'
         18        SEND_VAR                                                     !0
         19        DO_ICALL                                                     
   17    20        INIT_FCALL                                                   'var_dump'
         21        SEND_VAR                                                     !1
         22        DO_ICALL                                                     
   18    23        INIT_FCALL                                                   'var_dump'
         24        IS_IDENTICAL                                         ~17     !0, 'tmp_hardcoded'
         25        SEND_VAL                                                     ~17
         26        DO_ICALL                                                     
   19    27        INIT_FCALL                                                   'var_dump'
         28        IS_IDENTICAL                                         ~19     !0, 'tmp_100'
         29        SEND_VAL                                                     ~19
         30        DO_ICALL                                                     
         31      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
144.98 ms | 488 KiB | 11 Q