3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { function random_int(int $min, int $max) : int { return 4; } var_dump(random_int(32, 64)); var_dump(\random_int(32, 64)); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/po925
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_NS_FCALL_BY_NAME                                    'Foo%5Cvar_dump'
          1        INIT_NS_FCALL_BY_NAME                                    'Foo%5Crandom_int'
          2        SEND_VAL_EX                                              32
          3        SEND_VAL_EX                                              64
          4        DO_FCALL                                      0  $0      
          5        SEND_VAR_NO_REF_EX                                       $0
          6        DO_FCALL                                      0          
    9     7        INIT_NS_FCALL_BY_NAME                                    'Foo%5Cvar_dump'
          8        INIT_FCALL                                               'random_int'
          9        SEND_VAL                                                 32
         10        SEND_VAL                                                 64
         11        DO_ICALL                                         $2      
         12        SEND_VAR_NO_REF_EX                                       $2
         13        DO_FCALL                                      0          
   10    14      > RETURN                                                   1

Function foo%5Crandom_int:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/po925
function name:  Foo\random_int
number of ops:  5
compiled vars:  !0 = $min, !1 = $max
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2      > RETURN                                                   4
    6     3*       VERIFY_RETURN_TYPE                                       
          4*     > RETURN                                                   null

End of function foo%5Crandom_int

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.47 ms | 1395 KiB | 17 Q