3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filter = array("isSystem" => TRUE, "isBlackList" => FALSE);$tag = new stdClass;$tag->id = 1;$tag->name = "Joho";$tag->isSystem = TRUE;$tag->isBlackList = TRUE;$result = array_diff($filter, (array)$tag);print_r($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VvITS
function name:  (null)
number of ops:  22
compiled vars:  !0 = $filter, !1 = $tag, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
          1        NEW                                              $4      'stdClass'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $4
          4        ASSIGN_OBJ                                               !1, 'id'
          5        OP_DATA                                                  1
          6        ASSIGN_OBJ                                               !1, 'name'
          7        OP_DATA                                                  'Joho'
          8        ASSIGN_OBJ                                               !1, 'isSystem'
          9        OP_DATA                                                  <true>
         10        ASSIGN_OBJ                                               !1, 'isBlackList'
         11        OP_DATA                                                  <true>
         12        INIT_FCALL                                               'array_diff'
         13        SEND_VAR                                                 !0
         14        CAST                                          7  ~11     !1
         15        SEND_VAL                                                 ~11
         16        DO_ICALL                                         $12     
         17        ASSIGN                                                   !2, $12
         18        INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.28 ms | 1395 KiB | 17 Q