3v4l.org

run code in 500+ PHP versions simultaneously
<?php function doanything1(){ echo "doanything1"; } function doanything2(){ echo "doanything2"; } $condition1 = true; $condition2 = true; match(true){ $condition1 && $condition2 => doanything1(), !$condition1 => doanything2(), default => '', };
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 4
filename:       /in/ije5X
function name:  (null)
number of ops:  22
compiled vars:  !0 = $condition1, !1 = $condition2
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   ASSIGN                                                       !0, <true>
   12     1        ASSIGN                                                       !1, <true>
   15     2      > JMPZ_EX                                              ~5      !0, ->4
          3    >   BOOL                                                 ~5      !1
          4    >   IS_IDENTICAL                                                 ~5, <true>
          5      > JMPNZ                                                        ~4, ->10
   16     6    >   BOOL_NOT                                             ~6      !0
          7        IS_IDENTICAL                                                 ~6, <true>
          8      > JMPNZ                                                        ~4, ->14
          9    > > JMP                                                          ->18
   15    10    >   INIT_FCALL                                                   'doanything1'
         11        DO_FCALL                                          0  $7      
         12        QM_ASSIGN                                            ~8      $7
         13      > JMP                                                          ->20
   16    14    >   INIT_FCALL                                                   'doanything2'
         15        DO_FCALL                                          0  $9      
         16        QM_ASSIGN                                            ~8      $9
         17      > JMP                                                          ->20
   17    18    >   QM_ASSIGN                                            ~8      ''
         19      > JMP                                                          ->20
         20    >   FREE                                                         ~8
   18    21      > RETURN                                                       1

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

End of function doanything1

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

End of function doanything2

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
129.21 ms | 484 KiB | 9 Q