3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); $a["test;@2"] = 5; class A { protected $name; public function __construct($name) { $this->name = $name; } } var_dump($a); var_dump(new A("test;@2"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Sr0cr
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN_DIM                                               !0, 'test%3B%402'
          2        OP_DATA                                                  5
   18     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
   19     6        INIT_FCALL                                               'var_dump'
          7        NEW                                              $4      'A'
          8        SEND_VAL_EX                                              'test%3B%402'
          9        DO_FCALL                                      0          
         10        SEND_VAR                                                 $4
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Class A:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Sr0cr
function name:  __construct
number of ops:  4
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   12     1        ASSIGN_OBJ                                               'name'
          2        OP_DATA                                                  !0
   13     3      > RETURN                                                   null

End of function __construct

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.92 ms | 1395 KiB | 15 Q