3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { protected $tag = 'test'; protected $tags_test; public function save($tags) { $_tag = "tags_{$this->tag}"; $this->{"tags_{$this->tag}"} = $tags; var_dump($this->$_tag); } } $test = new test(); $test->save(2322323); $t = true; $t &= false; $t &= true; $t &= false; var_dump($t); echo mime_content_type('test.php'); //var_dump(pathinfo('FilLe.DoC'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bR9ZA
function name:  (null)
number of ops:  18
compiled vars:  !0 = $test, !1 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   NEW                                              $2      'test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   18     3        INIT_METHOD_CALL                                         !0, 'save'
          4        SEND_VAL_EX                                              2322323
          5        DO_FCALL                                      0          
   20     6        ASSIGN                                                   !1, <true>
   22     7        ASSIGN_OP                                    10          !1, <false>
   23     8        ASSIGN_OP                                    10          !1, <true>
   24     9        ASSIGN_OP                                    10          !1, <false>
   26    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
   27    13        INIT_FCALL                                               'mime_content_type'
         14        SEND_VAL                                                 'test.php'
         15        DO_ICALL                                         $11     
         16        ECHO                                                     $11
   29    17      > RETURN                                                   1

Class test:
Function save:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bR9ZA
function name:  save
number of ops:  15
compiled vars:  !0 = $tags, !1 = $_tag
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
   10     1        NOP                                                      
          2        FETCH_OBJ_R                                      ~2      'tag'
          3        FAST_CONCAT                                      ~3      'tags_', ~2
          4        ASSIGN                                                   !1, ~3
   11     5        NOP                                                      
          6        FETCH_OBJ_R                                      ~5      'tag'
          7        FAST_CONCAT                                      ~6      'tags_', ~5
          8        ASSIGN_OBJ                                               ~6
          9        OP_DATA                                                  !0
   12    10        INIT_FCALL                                               'var_dump'
         11        FETCH_OBJ_R                                      ~8      !1
         12        SEND_VAL                                                 ~8
         13        DO_ICALL                                                 
   13    14      > RETURN                                                   null

End of function save

End of class test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
200.94 ms | 1396 KiB | 17 Q