3v4l.org

run code in 300+ PHP versions simultaneously
<?php function shitrand() { static $i=32; return substr(number_format('1E'.($i++), 0), -1); } for($i=0; $i<20; $i++) { var_dump(shitrand()); }
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 = 2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 2
Branch analysis from position: 10
Branch analysis from position: 2
filename:       /in/ZAqhQ
function name:  (null)
number of ops:  11
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->8
   12     2    >   INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'shitrand'
          4        DO_FCALL                                      0  $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
   10     7        PRE_INC                                                  !0
          8    >   IS_SMALLER                                               !0, 20
          9      > JMPNZ                                                    ~5, ->2
   13    10    > > RETURN                                                   1

Function shitrand:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZAqhQ
function name:  shitrand
number of ops:  13
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   BIND_STATIC                                              !0
    7     1        INIT_FCALL                                               'substr'
          2        INIT_FCALL                                               'number_format'
          3        POST_INC                                         ~1      !0
          4        CONCAT                                           ~2      '1E', ~1
          5        SEND_VAL                                                 ~2
          6        SEND_VAL                                                 0
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        SEND_VAL                                                 -1
         10        DO_ICALL                                         $4      
         11      > RETURN                                                   $4
    8    12*     > RETURN                                                   null

End of function shitrand

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.65 ms | 1389 KiB | 20 Q