3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $_status = 404; private $_statusdesc = array( 404 => 'Not Found', ); public function speak() { return "HTTP/1.1 $this->_status $this->_statusdesc[$this->_status]"; } } $foo = new Foo(); var_dump($foo->speak());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NX8Yu
function name:  (null)
number of ops:  9
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   14     3        INIT_FCALL                                               'var_dump'
          4        INIT_METHOD_CALL                                         !0, 'speak'
          5        DO_FCALL                                      0  $4      
          6        SEND_VAR                                                 $4
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Class Foo:
Function speak:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NX8Yu
function name:  speak
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ROPE_INIT                                     7  ~4      'HTTP%2F1.1+'
          1        FETCH_OBJ_R                                      ~0      '_status'
          2        ROPE_ADD                                      1  ~4      ~4, ~0
          3        ROPE_ADD                                      2  ~4      ~4, '+'
          4        FETCH_OBJ_R                                      ~1      '_statusdesc'
          5        ROPE_ADD                                      3  ~4      ~4, ~1
          6        ROPE_ADD                                      4  ~4      ~4, '%5B'
          7        FETCH_OBJ_R                                      ~2      '_status'
          8        ROPE_ADD                                      5  ~4      ~4, ~2
          9        ROPE_END                                      6  ~3      ~4, '%5D'
         10      > RETURN                                                   ~3
   10    11*     > RETURN                                                   null

End of function speak

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.32 ms | 1395 KiB | 15 Q