3v4l.org

run code in 300+ PHP versions simultaneously
<?php $db = new stdClass; $db->affected_rows = 1; //affected_rows is type int var_dump($db->affected_rows); var_dump(empty($db->affected_rows));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/X8Jgh
function name:  (null)
number of ops:  14
compiled vars:  !0 = $db
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    3     3        ASSIGN_OBJ                                               !0, 'affected_rows'
          4        OP_DATA                                                  1
    5     5        INIT_FCALL                                               'var_dump'
          6        FETCH_OBJ_R                                      ~5      !0, 'affected_rows'
          7        SEND_VAL                                                 ~5
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'var_dump'
         10        ISSET_ISEMPTY_PROP_OBJ                           ~7      !0, 'affected_rows'
         11        SEND_VAL                                                 ~7
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.32 ms | 1394 KiB | 15 Q