3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { echo 'foo'; } function bar() { echo 'bar'; } true ? foo() : bar();
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 1, Position 2 = 5
Branch analysis from position: 1
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hAMF5
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E > > JMPZ                                                     <true>, ->5
          1    >   INIT_FCALL                                               'foo'
          2        DO_FCALL                                      0  $0      
          3        QM_ASSIGN                                        ~1      $0
          4      > JMP                                                      ->8
          5    >   INIT_FCALL                                               'bar'
          6        DO_FCALL                                      0  $2      
          7        QM_ASSIGN                                        ~1      $2
          8    >   FREE                                                     ~1
          9      > RETURN                                                   1

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

End of function foo

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

End of function bar

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.2 ms | 1397 KiB | 15 Q