3v4l.org

run code in 300+ PHP versions simultaneously
<?php function plop(int $val = null) { printf("val = %d\n", $val); } function autre() : int { return null; } plop(42); plop(null); autre();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lkG45
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'plop'
          1        SEND_VAL                                                 42
          2        DO_FCALL                                      0          
   14     3        INIT_FCALL                                               'plop'
          4        SEND_VAL                                                 null
          5        DO_FCALL                                      0          
   16     6        INIT_FCALL                                               'autre'
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Function plop:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lkG45
function name:  plop
number of ops:  6
compiled vars:  !0 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      null
    5     1        INIT_FCALL                                               'printf'
          2        SEND_VAL                                                 'val+%3D+%25d%0A'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    6     5      > RETURN                                                   null

End of function plop

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

End of function autre

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.84 ms | 1398 KiB | 18 Q