3v4l.org

run code in 300+ PHP versions simultaneously
<?php function stmt100() { return 100; } function stmt200() { return 200; } function valueThis() { if (200 === stmt200()) { return "this is " . stmt200(); } if (100 === stmt100()) { return "this is " . stmt100(); } } echo valueThis();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7Qt8T
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   INIT_FCALL                                               'valuethis'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
          3      > RETURN                                                   1

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

End of function stmt100

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

End of function stmt200

Function valuethis:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7Qt8T
function name:  valueThis
number of ops:  17
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               'stmt200'
          1        DO_FCALL                                      0  $0      
          2        IS_IDENTICAL                                             $0, 200
          3      > JMPZ                                                     ~1, ->8
   16     4    >   INIT_FCALL                                               'stmt200'
          5        DO_FCALL                                      0  $2      
          6        CONCAT                                           ~3      'this+is+', $2
          7      > RETURN                                                   ~3
   19     8    >   INIT_FCALL                                               'stmt100'
          9        DO_FCALL                                      0  $4      
         10        IS_IDENTICAL                                             $4, 100
         11      > JMPZ                                                     ~5, ->16
   20    12    >   INIT_FCALL                                               'stmt100'
         13        DO_FCALL                                      0  $6      
         14        CONCAT                                           ~7      'this+is+', $6
         15      > RETURN                                                   ~7
   22    16    > > RETURN                                                   null

End of function valuethis

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.72 ms | 1399 KiB | 18 Q