3v4l.org

run code in 300+ PHP versions simultaneously
<?php $l = 'a'; $i = 0; $a = []; while($i++ < 1000) { $md5 = md5($l++); if(substr($md5, 0, 2) === '0e') { $a[] = $md5; } } echo '<pre>'; print_r($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 4
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 4
Branch analysis from position: 21
Branch analysis from position: 4
Branch analysis from position: 18
filename:       /in/N4t7S
function name:  (null)
number of ops:  26
compiled vars:  !0 = $l, !1 = $i, !2 = $a, !3 = $md5
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'a'
    4     1        ASSIGN                                                   !1, 0
    5     2        ASSIGN                                                   !2, <array>
    6     3      > JMP                                                      ->18
    7     4    >   INIT_FCALL                                               'md5'
          5        POST_INC                                         ~7      !0
          6        SEND_VAL                                                 ~7
          7        DO_ICALL                                         $8      
          8        ASSIGN                                                   !3, $8
    8     9        INIT_FCALL                                               'substr'
         10        SEND_VAR                                                 !3
         11        SEND_VAL                                                 0
         12        SEND_VAL                                                 2
         13        DO_ICALL                                         $10     
         14        IS_IDENTICAL                                             $10, '0e'
         15      > JMPZ                                                     ~11, ->18
    9    16    >   ASSIGN_DIM                                               !2
         17        OP_DATA                                                  !3
    6    18    >   POST_INC                                         ~13     !1
         19        IS_SMALLER                                               ~13, 1000
         20      > JMPNZ                                                    ~14, ->4
   13    21    >   ECHO                                                     '%3Cpre%3E'
   14    22        INIT_FCALL                                               'print_r'
         23        SEND_VAR                                                 !2
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.5 ms | 1395 KiB | 19 Q