3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = new class { public $a; public $b = null; public $c = ""; public function execute($name) { var_dump($a[$name] = $name); var_dump($b[$name] = $name); var_dump($c[$name] = $name); } }; $test->write([1,2,3]); $test->write("test"); $test->write(123456);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a4T3V
function name:  (null)
number of ops:  14
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_ANON_CLASS                               <unknown> 
          1        NEW                                              $2      $1
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
   15     4        INIT_METHOD_CALL                                         !0, 'write'
          5        SEND_VAL_EX                                              <array>
          6        DO_FCALL                                      0          
   16     7        INIT_METHOD_CALL                                         !0, 'write'
          8        SEND_VAL_EX                                              'test'
          9        DO_FCALL                                      0          
   17    10        INIT_METHOD_CALL                                         !0, 'write'
         11        SEND_VAL_EX                                              123456
         12        DO_FCALL                                      0          
         13      > RETURN                                                   1

Class class@anonymous:
Function execute:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a4T3V
function name:  execute
number of ops:  17
compiled vars:  !0 = $name, !1 = $a, !2 = $b, !3 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1        INIT_FCALL                                               'var_dump'
          2        ASSIGN_DIM                                       ~4      !1, !0
          3        OP_DATA                                                  !0
          4        SEND_VAL                                                 ~4
          5        DO_ICALL                                                 
   10     6        INIT_FCALL                                               'var_dump'
          7        ASSIGN_DIM                                       ~6      !2, !0
          8        OP_DATA                                                  !0
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                                 
   11    11        INIT_FCALL                                               'var_dump'
         12        ASSIGN_DIM                                       ~8      !3, !0
         13        OP_DATA                                                  !0
         14        SEND_VAL                                                 ~8
         15        DO_ICALL                                                 
   12    16      > RETURN                                                   null

End of function execute

End of class class@anonymous.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.43 ms | 1388 KiB | 15 Q