3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (is_int(0x7FFFFFFF + 1)) { function foo() { return sprintf("%16x", mt_rand(-0x7FFFFFFFFFFFFFFF - 1, 0x7FFFFFFFFFFFFFFF)); } } else { function foo() { return sprintf( "%08x%08x", mt_rand(-0x7FFFFFFF - 1, 0x7FFFFFFF), mt_rand(-0x7FFFFFFF - 1, 0x7FFFFFFF) ); } } foreach (range(1, 5) as $i) { echo foo(), "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 4
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 16
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 16
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
Branch analysis from position: 4
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 16
Branch analysis from position: 10
Branch analysis from position: 16
filename:       /in/gu1h0
function name:  (null)
number of ops:  18
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   TYPE_CHECK                                   16          2147483648
          1      > JMPZ                                                     ~1, ->4
    3     2    >   DECLARE_FUNCTION                                         'foo'
    5     3      > JMP                                                      ->5
    8     4    >   DECLARE_FUNCTION                                         'foo'
   17     5    >   INIT_FCALL                                               'range'
          6        SEND_VAL                                                 1
          7        SEND_VAL                                                 5
          8        DO_ICALL                                         $2      
          9      > FE_RESET_R                                       $3      $2, ->16
         10    > > FE_FETCH_R                                               $3, !0, ->16
   18    11    >   INIT_FCALL_BY_NAME                                       'foo'
         12        DO_FCALL                                      0  $4      
         13        ECHO                                                     $4
         14        ECHO                                                     '%0A'
   17    15      > JMP                                                      ->10
         16    >   FE_FREE                                                  $3
   19    17      > RETURN                                                   1

Function %00foo%2Fin%2Fgu1h0%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gu1h0
function name:  foo
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'sprintf'
          1        SEND_VAL                                                 '%2516x'
          2        INIT_FCALL                                               'mt_rand'
          3        SEND_VAL                                                 -9223372036854775808
          4        SEND_VAL                                                 9223372036854775807
          5        DO_ICALL                                         $0      
          6        SEND_VAR                                                 $0
          7        DO_ICALL                                         $1      
          8      > RETURN                                                   $1
    5     9*     > RETURN                                                   null

End of function %00foo%2Fin%2Fgu1h0%3A3%240

Function %00foo%2Fin%2Fgu1h0%3A8%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gu1h0
function name:  foo
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'sprintf'
   10     1        SEND_VAL                                                 '%2508x%2508x'
   11     2        INIT_FCALL                                               'mt_rand'
          3        SEND_VAL                                                 -2147483648
          4        SEND_VAL                                                 2147483647
          5        DO_ICALL                                         $0      
          6        SEND_VAR                                                 $0
   12     7        INIT_FCALL                                               'mt_rand'
          8        SEND_VAL                                                 -2147483648
          9        SEND_VAL                                                 2147483647
         10        DO_ICALL                                         $1      
         11        SEND_VAR                                                 $1
         12        DO_ICALL                                         $2      
         13      > RETURN                                                   $2
   14    14*     > RETURN                                                   null

End of function %00foo%2Fin%2Fgu1h0%3A8%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.27 ms | 1400 KiB | 19 Q