3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 0; for ($number0 = 0; $number0 < 1000000; $number0++) if (5 === hexdec(substr(hash("sha256",$number0."-0405233536-371638"),0,8)) % 15) $i++; var_dump($i);;
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 = 3
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 20
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 3
Branch analysis from position: 23
Branch analysis from position: 3
Branch analysis from position: 20
filename:       /in/Oc6mc
function name:  (null)
number of ops:  27
compiled vars:  !0 = $i, !1 = $number0
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ASSIGN                                                   !0, 0
          1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->21
          3    >   INIT_FCALL                                               'hexdec'
          4        INIT_FCALL                                               'substr'
          5        INIT_FCALL                                               'hash'
          6        SEND_VAL                                                 'sha256'
          7        CONCAT                                           ~4      !1, '-0405233536-371638'
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        SEND_VAL                                                 0
         12        SEND_VAL                                                 8
         13        DO_ICALL                                         $6      
         14        SEND_VAR                                                 $6
         15        DO_ICALL                                         $7      
         16        MOD                                              ~8      $7, 15
         17        IS_IDENTICAL                                             ~8, 5
         18      > JMPZ                                                     ~9, ->20
         19    >   PRE_INC                                                  !0
         20    >   PRE_INC                                                  !1
         21    >   IS_SMALLER                                               !1, 1000000
         22      > JMPNZ                                                    ~12, ->3
         23    >   INIT_FCALL                                               'var_dump'
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.58 ms | 1070 KiB | 17 Q