3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array("ErrorTable" => array( "ERRCDE" => "", "ERRFLD" => "disapproveTimesheet", "ERRDSC" => "Timesheet has not yet been verified by the employee", "ERRFLDNME" => "Timesheets_Model_Timesheet", "ERRTYPE" => "E", "ERRROWNBR" => "", "ERREDR" => "" )); $b = "hello world!"; if($a["ErrorTable"]) echo "1\n"; if(isset($b["ErrorTable"]["ERRFLD"])) echo "2\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
Branch analysis from position: 5
filename:       /in/aXgUA
function name:  (null)
number of ops:  10
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   12     1        ASSIGN                                                   !1, 'hello+world%21'
   14     2        FETCH_DIM_R                                      ~4      !0, 'ErrorTable'
          3      > JMPZ                                                     ~4, ->5
   15     4    >   ECHO                                                     '1%0A'
   16     5    >   FETCH_DIM_IS                                     ~5      !1, 'ErrorTable'
          6        ISSET_ISEMPTY_DIM_OBJ                         0          ~5, 'ERRFLD'
          7      > JMPZ                                                     ~6, ->9
   17     8    >   ECHO                                                     '2%0A'
          9    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.62 ms | 1392 KiB | 13 Q