3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function f(float $f){} f(1); // int->float: legal function i(int $i){} i(1.0); // float->int: illegal, even if the float happens to be a whole number.
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gS1b7
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'f'
          1        SEND_VAL                                                 1
          2        DO_FCALL                                      0          
    6     3        INIT_FCALL                                               'i'
          4        SEND_VAL                                                 1
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

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

End of function f

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

End of function i

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.07 ms | 999 KiB | 15 Q