3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d1 = new mysqli_driver(); $d2 = new mysqli_driver(); echo $d1->report_mode.PHP_EOL; echo $d2->report_mode.PHP_EOL; $d1->report_mode = MYSQLI_REPORT_ALL; echo $d1->report_mode.PHP_EOL; echo $d2->report_mode.PHP_EOL; var_dump($d1); var_dump($d2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/330o6
function name:  (null)
number of ops:  28
compiled vars:  !0 = $d1, !1 = $d2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'mysqli_driver'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    3     3        NEW                                              $5      'mysqli_driver'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
    5     6        FETCH_OBJ_R                                      ~8      !0, 'report_mode'
          7        CONCAT                                           ~9      ~8, '%0A'
          8        ECHO                                                     ~9
    6     9        FETCH_OBJ_R                                      ~10     !1, 'report_mode'
         10        CONCAT                                           ~11     ~10, '%0A'
         11        ECHO                                                     ~11
    8    12        FETCH_CONSTANT                                   ~13     'MYSQLI_REPORT_ALL'
         13        ASSIGN_OBJ                                               !0, 'report_mode'
         14        OP_DATA                                                  ~13
   10    15        FETCH_OBJ_R                                      ~14     !0, 'report_mode'
         16        CONCAT                                           ~15     ~14, '%0A'
         17        ECHO                                                     ~15
   11    18        FETCH_OBJ_R                                      ~16     !1, 'report_mode'
         19        CONCAT                                           ~17     ~16, '%0A'
         20        ECHO                                                     ~17
   13    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                                 
   14    24        INIT_FCALL                                               'var_dump'
         25        SEND_VAR                                                 !1
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.38 ms | 1395 KiB | 15 Q