3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/B18he
function name:  (null)
number of ops:  31
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   INIT_FCALL                                               'mt_srand'
          1        SEND_VAL                                                 1234
          2        DO_ICALL                                                 
   19     3        INIT_FCALL                                               'my_mt_srand'
          4        SEND_VAL                                                 1234
          5        DO_FCALL                                      0          
   21     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'mt_rand'
          8        DO_ICALL                                         $2      
          9        SEND_VAR                                                 $2
         10        DO_ICALL                                                 
   22    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'my_mt_rand'
         13        DO_FCALL                                      0  $4      
         14        SEND_VAR                                                 $4
         15        DO_ICALL                                                 
   23    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'mt_rand'
         18        SEND_VAL                                                 1
         19        SEND_VAL                                                 1000
         20        DO_ICALL                                         $6      
         21        SEND_VAR                                                 $6
         22        DO_ICALL                                                 
   24    23        INIT_FCALL                                               'var_dump'
         24        INIT_FCALL                                               'my_mt_rand'
         25        SEND_VAL                                                 1
         26        SEND_VAL                                                 1000
         27        DO_FCALL                                      0  $8      
         28        SEND_VAR                                                 $8
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Function my_mt_srand:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/B18he
function name:  my_mt_srand
number of ops:  10
compiled vars:  !0 = $seed
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      null
    4     1        NEW                                              $2      'Random%5CRandomizer'
          2        NEW                                              $3      'Random%5CEngine%5CMt19937'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0          
          5        SEND_VAR_NO_REF_EX                                       $3
          6        DO_FCALL                                      0          
          7        FETCH_W                      global              $1      'my_mt_rand'
          8        ASSIGN                                                   $1, $2
    5     9      > RETURN                                                   null

End of function my_mt_srand

Function my_mt_rand:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 12
Branch analysis from position: 5
2 jumps found. (Code = 46) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 21
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
Branch analysis from position: 12
filename:       /in/B18he
function name:  my_mt_rand
number of ops:  28
compiled vars:  !0 = $min, !1 = $max
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV_INIT                                        !0      null
          1        RECV_INIT                                        !1      null
    7     2        ISSET_ISEMPTY_VAR                             2  ~2      'my_mt_rand'
          3        BOOL_NOT                                         ~3      ~2
          4      > JMPZ                                                     ~3, ->12
    8     5    >   NEW                                              $5      'Random%5CRandomizer'
          6        NEW                                              $6      'Random%5CEngine%5CMt19937'
          7        DO_FCALL                                      0          
          8        SEND_VAR_NO_REF_EX                                       $6
          9        DO_FCALL                                      0          
         10        FETCH_W                      global              $4      'my_mt_rand'
         11        ASSIGN                                                   $4, $5
   11    12    >   TYPE_CHECK                                    2  ~10     !0
         13      > JMPZ_EX                                          ~10     ~10, ->16
         14    >   TYPE_CHECK                                    2  ~11     !1
         15        BOOL                                             ~10     ~11
         16    > > JMPZ                                                     ~10, ->21
   12    17    >   FETCH_R                      global              ~12     'my_mt_rand'
         18        INIT_METHOD_CALL                                         ~12, 'nextInt'
         19        DO_FCALL                                      0  $13     
         20      > RETURN                                                   $13
   15    21    >   FETCH_R                      global              ~14     'my_mt_rand'
         22        INIT_METHOD_CALL                                         ~14, 'getInt'
         23        SEND_VAR_EX                                              !0
         24        SEND_VAR_EX                                              !1
         25        DO_FCALL                                      0  $15     
         26      > RETURN                                                   $15
   16    27*     > RETURN                                                   null

End of function my_mt_rand

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.08 ms | 978 KiB | 19 Q