3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo(int $v) { echo $v; } $val = gmp_init('9999999999999999999999999999999'); echo $val; foo($val);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GiklL
function name:  (null)
number of ops:  9
compiled vars:  !0 = $val
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL_BY_NAME                                           'gmp_init'
          1        SEND_VAL_EX                                                  '9999999999999999999999999999999'
          2        DO_FCALL                                          0  $1      
          3        ASSIGN                                                       !0, $1
    8     4        ECHO                                                         !0
    9     5        INIT_FCALL                                                   'foo'
          6        SEND_VAR                                                     !0
          7        DO_FCALL                                          0          
          8      > RETURN                                                       1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GiklL
function name:  foo
number of ops:  3
compiled vars:  !0 = $v
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
    4     1        ECHO                                                         !0
    5     2      > RETURN                                                       null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
223.06 ms | 3384 KiB | 14 Q