3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Test { const FOO = ["a" => 0, "b" => 1, "b" => 2, "d" => 3]; public function getTest() { $a = ["a" => 0, "b" => 1, "b" => 2, "d" => 3]; var_dump(empty($a["not_found"])); $b = self::FOO; var_dump(empty($b["not_found"])); var_dump(empty(self::FOO["not_found"])); } } (new Test)->getTest();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UYg9F
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   18     0  E >   NEW                                                  $0      'Test'
          1        DO_FCALL                                          0          
          2        INIT_METHOD_CALL                                             $0, 'getTest'
          3        DO_FCALL                                          0          
          4      > RETURN                                                       1

Class Test:
Function gettest:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UYg9F
function name:  getTest
number of ops:  15
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                       !0, <array>
    9     1        INIT_FCALL                                                   'var_dump'
          2        ISSET_ISEMPTY_DIM_OBJ                             1  ~3      !0, 'not_found'
          3        SEND_VAL                                                     ~3
          4        DO_ICALL                                                     
   11     5        ASSIGN                                                       !1, <array>
   12     6        INIT_FCALL                                                   'var_dump'
          7        ISSET_ISEMPTY_DIM_OBJ                             1  ~6      !1, 'not_found'
          8        SEND_VAL                                                     ~6
          9        DO_ICALL                                                     
   14    10        INIT_FCALL                                                   'var_dump'
         11        ISSET_ISEMPTY_DIM_OBJ                             1  ~8      <array>, 'not_found'
         12        SEND_VAL                                                     ~8
         13        DO_ICALL                                                     
   15    14      > RETURN                                                       null

End of function gettest

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.78 ms | 2536 KiB | 9 Q