3v4l.org

run code in 300+ PHP versions simultaneously
<?php //declare(strict_types=1); function asd(int $a) : int { return $a; } var_dump(asd('1')); if (asd(1) == '1') { //echo asd(1); } echo ord(86);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/NvHln
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'asd'
          2        SEND_VAL                                                 '1'
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
   12     6        INIT_FCALL                                               'asd'
          7        SEND_VAL                                                 1
          8        DO_FCALL                                      0  $2      
          9        IS_EQUAL                                                 $2, '1'
         10      > JMPZ                                                     ~3, ->11
   16    11    >   INIT_FCALL                                               'ord'
         12        SEND_VAL                                                 86
         13        DO_ICALL                                         $4      
         14        ECHO                                                     $4
         15      > RETURN                                                   1

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

End of function asd

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.17 ms | 1398 KiB | 19 Q