3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function pass_float(float $x) { echo "why?"; } $i = 1; if(gettype($i) == "integer") { pass_float($int_value); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/LFZHJ
function name:  (null)
number of ops:  8
compiled vars:  !0 = $i, !1 = $int_value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, 1
    9     1        GET_TYPE                                         ~3      !0
          2        IS_EQUAL                                                 ~3, 'integer'
          3      > JMPZ                                                     ~4, ->7
   10     4    >   INIT_FCALL                                               'pass_float'
          5        SEND_VAR                                                 !1
          6        DO_FCALL                                      0          
   11     7    > > RETURN                                                   1

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

End of function pass_float

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.34 ms | 1397 KiB | 14 Q