3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); function testFloat(): float { return 1; } var_dump(is_float(testFloat())); var_dump(is_float(1)); function testInteger(): int { return 1; } var_dump(is_int(testInteger())); var_dump(is_int(1));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tmcO4
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                                   'var_dump'
          1        INIT_FCALL                                                   'testfloat'
          2        DO_FCALL                                          0  $0      
          3        TYPE_CHECK                                       32  ~1      $0
          4        SEND_VAL                                                     ~1
          5        DO_ICALL                                                     
   10     6        INIT_FCALL                                                   'var_dump'
          7        TYPE_CHECK                                       32  ~3      1
          8        SEND_VAL                                                     ~3
          9        DO_ICALL                                                     
   18    10        INIT_FCALL                                                   'var_dump'
         11        INIT_FCALL                                                   'testinteger'
         12        DO_FCALL                                          0  $5      
         13        TYPE_CHECK                                       16  ~6      $5
         14        SEND_VAL                                                     ~6
         15        DO_ICALL                                                     
   19    16        INIT_FCALL                                                   'var_dump'
         17        TYPE_CHECK                                       16  ~8      1
         18        SEND_VAL                                                     ~8
         19        DO_ICALL                                                     
         20      > RETURN                                                       1

Function testfloat:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tmcO4
function name:  testFloat
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   VERIFY_RETURN_TYPE                                   ~0      1
          1      > RETURN                                                       ~0
    7     2*       VERIFY_RETURN_TYPE                                           
          3*     > RETURN                                                       null

End of function testfloat

Function testinteger:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tmcO4
function name:  testInteger
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   15     0  E > > RETURN                                                       1
   16     1*       VERIFY_RETURN_TYPE                                           
          2*     > RETURN                                                       null

End of function testinteger

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
168.73 ms | 2141 KiB | 16 Q