3v4l.org

run code in 300+ PHP versions simultaneously
<?php $get_report_response = []; $get_report_response['code'] = 'A'; $api_return_status = match ($get_report_response['code']) { 'A', 'W' => true, default => false, }; var_dump($api_return_status);
Finding entry points
Branch analysis from position: 0
3 jumps found. (Code = 195) Position 1 = 5, Position 2 = 5, Position 3 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
filename:       /in/OcoPf
function name:  (null)
number of ops:  15
compiled vars:  !0 = $get_report_response, !1 = $api_return_status
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN_DIM                                               !0, 'code'
          2        OP_DATA                                                  'A'
    6     3        FETCH_DIM_R                                      ~4      !0, 'code'
          4      > MATCH                                                    ~4, [ 'A':->5, 'W':->5, ], ->7
    7     5    >   QM_ASSIGN                                        ~6      <true>
          6      > JMP                                                      ->9
    8     7    >   QM_ASSIGN                                        ~6      <false>
          8      > JMP                                                      ->9
          9    >   FREE                                                     ~4
    6    10        ASSIGN                                                   !1, ~6
   11    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.8 ms | 1001 KiB | 14 Q