3v4l.org

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

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

End of function bla

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.66 ms | 1389 KiB | 17 Q