3v4l.org

run code in 300+ PHP versions simultaneously
<?php // xdebug_start_trace('/tmp/'. uniqid('xdt', TRUE)); function test($a, $b) { $a **= $b; } class testClass { public $a; private $b; function __construct() { $this->a = 98; $this->b = 4; $this->a **= $this->b; } } test(7, 3); $a = new testClass; echo $a->a; //xdebug_stop_trace(); //echo file_get_contents($tf); //unlink($tf); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aULpq
function name:  (null)
number of ops:  10
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   INIT_FCALL                                               'test'
          1        SEND_VAL                                                 7
          2        SEND_VAL                                                 3
          3        DO_FCALL                                      0          
   23     4        NEW                                              $2      'testClass'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $2
   24     7        FETCH_OBJ_R                                      ~5      !0, 'a'
          8        ECHO                                                     ~5
   29     9      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aULpq
function name:  test
number of ops:  4
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        ASSIGN_OP                                    12          !0, !1
    7     3      > RETURN                                                   null

End of function test

Class testClass:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aULpq
function name:  __construct
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   ASSIGN_OBJ                                               'a'
          1        OP_DATA                                                  98
   17     2        ASSIGN_OBJ                                               'b'
          3        OP_DATA                                                  4
   18     4        FETCH_OBJ_R                                      ~3      'b'
          5        ASSIGN_OBJ_OP                                12          'a'
          6        OP_DATA                                                  ~3
   19     7      > RETURN                                                   null

End of function __construct

End of class testClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.84 ms | 1397 KiB | 14 Q