3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Model { public function insertIntoDatabase() { echo "table is " . $this->table . "\n"; } } class User extends Model { public $table = "user"; } $user = new User(); $user->insertIntoDatabase();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Xf7Gf
function name:  (null)
number of ops:  6
compiled vars:  !0 = $user
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   NEW                                                  $1      'User'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   14     3        INIT_METHOD_CALL                                             !0, 'insertIntoDatabase'
          4        DO_FCALL                                          0          
          5      > RETURN                                                       1

Class Model:
Function insertintodatabase:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Xf7Gf
function name:  insertIntoDatabase
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   FETCH_OBJ_R                                          ~0      'table'
          1        CONCAT                                               ~1      'table+is+', ~0
          2        CONCAT                                               ~2      ~1, '%0A'
          3        ECHO                                                         ~2
    6     4      > RETURN                                                       null

End of function insertintodatabase

End of class Model.

Class User:
Function insertintodatabase:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Xf7Gf
function name:  insertIntoDatabase
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   FETCH_OBJ_R                                          ~0      'table'
          1        CONCAT                                               ~1      'table+is+', ~0
          2        CONCAT                                               ~2      ~1, '%0A'
          3        ECHO                                                         ~2
    6     4      > RETURN                                                       null

End of function insertintodatabase

End of class User.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.82 ms | 1390 KiB | 13 Q