3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = match('test') { 'test' && true => true, 'test2' && true => true, default => false, }; var_dump($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 2, Position 2 = 5
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
filename:       /in/KktKB
function name:  (null)
number of ops:  16
compiled vars:  !0 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   IS_IDENTICAL                                             'test', <true>
          1      > JMPNZ                                                    ~1, ->5
    5     2    >   IS_IDENTICAL                                             'test', <true>
          3      > JMPNZ                                                    ~1, ->7
          4    > > JMP                                                      ->9
    4     5    >   QM_ASSIGN                                        ~2      <true>
          6      > JMP                                                      ->11
    5     7    >   QM_ASSIGN                                        ~2      <true>
          8      > JMP                                                      ->11
    6     9    >   QM_ASSIGN                                        ~2      <false>
         10      > JMP                                                      ->11
    3    11    >   ASSIGN                                                   !0, ~2
    9    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.69 ms | 1395 KiB | 15 Q