3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = true; function get(): string { return 'hello'; } //echo $foo ? get(); //echo "\n"; //echo $foo ? get(): null; echo $foo ?: get();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nZEpt
function name:  (null)
number of ops:  7
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <true>
   15     1        JMP_SET                                          ~2      !0, ->5
          2        INIT_FCALL                                               'get'
          3        DO_FCALL                                      0  $3      
          4        QM_ASSIGN                                        ~2      $3
          5        ECHO                                                     ~2
          6      > RETURN                                                   1

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

End of function get

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.37 ms | 1396 KiB | 14 Q