3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i = 0; $i < 200; $i++){ $lala = "e".$i; $rs = sha1($lala); if(substr($rs, 0, 2) === "0e"){ echo "$lala: ".$rs."\n"; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 20
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 2
Branch analysis from position: 23
Branch analysis from position: 2
Branch analysis from position: 20
filename:       /in/ULZAJ
function name:  (null)
number of ops:  24
compiled vars:  !0 = $i, !1 = $lala, !2 = $rs
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->21
    3     2    >   CONCAT                                           ~4      'e', !0
          3        ASSIGN                                                   !1, ~4
    4     4        INIT_FCALL                                               'sha1'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !2, $6
    5     8        INIT_FCALL                                               'substr'
          9        SEND_VAR                                                 !2
         10        SEND_VAL                                                 0
         11        SEND_VAL                                                 2
         12        DO_ICALL                                         $8      
         13        IS_IDENTICAL                                             $8, '0e'
         14      > JMPZ                                                     ~9, ->20
    7    15    >   NOP                                                      
         16        FAST_CONCAT                                      ~10     !1, '%3A+'
         17        CONCAT                                           ~11     ~10, !2
         18        CONCAT                                           ~12     ~11, '%0A'
         19        ECHO                                                     ~12
    2    20    >   PRE_INC                                                  !0
         21    >   IS_SMALLER                                               !0, 200
         22      > JMPNZ                                                    ~14, ->2
   10    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.28 ms | 1395 KiB | 17 Q