3v4l.org

run code in 300+ PHP versions simultaneously
<?php class User{ private function getName(){ return ‘Priscila’; } } class Admin extends User { public function getName(){ return self::getName(); } } $admin = new Admin(); $admin->getName();

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gMkQM
function name:  (null)
number of ops:  6
compiled vars:  !0 = $admin
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $1      'Admin'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   15     3        INIT_METHOD_CALL                                         !0, 'getName'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class User:
Function getname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gMkQM
function name:  getName
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   FETCH_CONSTANT                                   ~0      '%E2%80%98Priscila%E2%80%99'
          1      > RETURN                                                   ~0
    6     2*     > RETURN                                                   null

End of function getname

End of class User.

Class Admin:
Function getname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gMkQM
function name:  getName
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_STATIC_METHOD_CALL                                  'getName'
          1        DO_FCALL                                      0  $0      
          2      > RETURN                                                   $0
   11     3*     > RETURN                                                   null

End of function getname

End of class Admin.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.26 ms | 1394 KiB | 13 Q