3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); function take_float(float $v) { return $v; }; function ret_float($v): float { return $v; }; $int = 1234; var_dump($int); var_dump(take_float($int)); var_dump(ret_float($int));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sspOM
function name:  (null)
number of ops:  17
compiled vars:  !0 = $int
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                       !0, 1234
    9     1        INIT_FCALL                                                   'var_dump'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                                     
   10     4        INIT_FCALL                                                   'var_dump'
          5        INIT_FCALL                                                   'take_float'
          6        SEND_VAR                                                     !0
          7        DO_FCALL                                          0  $3      
          8        SEND_VAR                                                     $3
          9        DO_ICALL                                                     
   11    10        INIT_FCALL                                                   'var_dump'
         11        INIT_FCALL                                                   'ret_float'
         12        SEND_VAR                                                     !0
         13        DO_FCALL                                          0  $5      
         14        SEND_VAR                                                     $5
         15        DO_ICALL                                                     
         16      > RETURN                                                       1

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

End of function take_float

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

End of function ret_float

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.36 ms | 1716 KiB | 16 Q