3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Numbers { public function __construct($numberint,$numbername,$numberletter,$numberpos) { $this->numberint = $numberint; $this->numbername = $numbername; $this->numberletter = $numberletter; $this->numberpos = $numberpos; } } $number1 = new Numbers(1,"One","A",0); print_r($number1); unset($number1->numberpos); print_r($number1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MO8sO
function name:  (null)
number of ops:  15
compiled vars:  !0 = $number1
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   NEW                                                  $1      'Numbers'
          1        SEND_VAL_EX                                                  1
          2        SEND_VAL_EX                                                  'One'
          3        SEND_VAL_EX                                                  'A'
          4        SEND_VAL_EX                                                  0
          5        DO_FCALL                                          0          
          6        ASSIGN                                                       !0, $1
   14     7        INIT_FCALL                                                   'print_r'
          8        SEND_VAR                                                     !0
          9        DO_ICALL                                                     
   15    10        UNSET_OBJ                                                    !0, 'numberpos'
   16    11        INIT_FCALL                                                   'print_r'
         12        SEND_VAR                                                     !0
         13        DO_ICALL                                                     
         14      > RETURN                                                       1

Class Numbers:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MO8sO
function name:  __construct
number of ops:  13
compiled vars:  !0 = $numberint, !1 = $numbername, !2 = $numberletter, !3 = $numberpos
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2        RECV                                                 !2      
          3        RECV                                                 !3      
    6     4        ASSIGN_OBJ                                                   'numberint'
          5        OP_DATA                                                      !0
    7     6        ASSIGN_OBJ                                                   'numbername'
          7        OP_DATA                                                      !1
    8     8        ASSIGN_OBJ                                                   'numberletter'
          9        OP_DATA                                                      !2
    9    10        ASSIGN_OBJ                                                   'numberpos'
         11        OP_DATA                                                      !3
   10    12      > RETURN                                                       null

End of function __construct

End of class Numbers.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.19 ms | 2168 KiB | 14 Q