3v4l.org

run code in 300+ PHP versions simultaneously
<?php function tryA() { return 0; } function tryB() { return 0; } function tryC() { return 0; } function screwIt() { return 10; } function test() { return tryA() ?: (tryB() ?: (tryC() ?: screwIt())); } echo test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MvlcE
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   INIT_FCALL                                               'test'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
          3      > RETURN                                                   1

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

End of function trya

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

End of function tryb

Function tryc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MvlcE
function name:  tryC
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E > > RETURN                                                   0
   13     1*     > RETURN                                                   null

End of function tryc

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

End of function screwit

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MvlcE
function name:  test
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   INIT_FCALL                                               'trya'
          1        DO_FCALL                                      0  $0      
          2        JMP_SET                                          ~1      $0, ->14
          3        INIT_FCALL                                               'tryb'
          4        DO_FCALL                                      0  $2      
          5        JMP_SET                                          ~3      $2, ->13
          6        INIT_FCALL                                               'tryc'
          7        DO_FCALL                                      0  $4      
          8        JMP_SET                                          ~5      $4, ->12
          9        INIT_FCALL                                               'screwit'
         10        DO_FCALL                                      0  $6      
         11        QM_ASSIGN                                        ~5      $6
         12        QM_ASSIGN                                        ~3      ~5
         13        QM_ASSIGN                                        ~1      ~3
         14      > RETURN                                                   ~1
   21    15*     > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
347.04 ms | 1019 KiB | 18 Q