3v4l.org

run code in 300+ PHP versions simultaneously
<?php function optional(?string $optional = null) {} function nullable(?string $nullable) {} optional(); nullable();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L9ZAP
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'optional'
          1        DO_FCALL                                      0          
    7     2        INIT_FCALL                                               'nullable'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

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

End of function optional

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

End of function nullable

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.04 ms | 1436 KiB | 15 Q