3v4l.org

run code in 500+ PHP versions simultaneously
<?php // Вендорский неймспейс class ShitClass { public function doShitStuff(string $thing) : string { return 'говно'; } } // Наш неймспейс interface MyGoodInterface { public function doCandyStuff(string $thing) : string; } // Наш неймспейс class MyGoodClass extends ShitCLass implements MyGoodInterface { public function doCandyStuff(string $thing) : string { return $this->doShitStuff($thing) . ', но сладкое'; } } $goodObject = new MyGoodClass; echo 'Я съел ' . $goodObject->doCandyStuff('сахар') . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NlQOO
function name:  (null)
number of ops:  11
compiled vars:  !0 = $goodObject
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   18     0  E >   DECLARE_CLASS                                                'mygoodclass', 'shitclass'
   26     1        NEW                                                  $1      'MyGoodClass'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $1
   27     4        INIT_METHOD_CALL                                             !0, 'doCandyStuff'
          5        SEND_VAL_EX                                                  '%D1%81%D0%B0%D1%85%D0%B0%D1%80'
          6        DO_FCALL                                          0  $4      
          7        CONCAT                                               ~5      '%D0%AF+%D1%81%D1%8A%D0%B5%D0%BB+', $4
          8        CONCAT                                               ~6      ~5, '%0A'
          9        ECHO                                                         ~6
   28    10      > RETURN                                                       1

Class ShitClass:
Function doshitstuff:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NlQOO
function name:  doShitStuff
number of ops:  4
compiled vars:  !0 = $thing
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   RECV                                                 !0      
    7     1      > RETURN                                                       '%D0%B3%D0%BE%D0%B2%D0%BD%D0%BE'
    8     2*       VERIFY_RETURN_TYPE                                           
          3*     > RETURN                                                       null

End of function doshitstuff

End of class ShitClass.

Class MyGoodInterface:
Function docandystuff:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NlQOO
function name:  doCandyStuff
number of ops:  3
compiled vars:  !0 = $thing
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   14     0  E >   RECV                                                 !0      
          1        VERIFY_RETURN_TYPE                                           
          2      > RETURN                                                       null

End of function docandystuff

End of class MyGoodInterface.

Class MyGoodClass:
Function docandystuff:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NlQOO
function name:  doCandyStuff
number of ops:  9
compiled vars:  !0 = $thing
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   20     0  E >   RECV                                                 !0      
   22     1        INIT_METHOD_CALL                                             'doShitStuff'
          2        SEND_VAR_EX                                                  !0
          3        DO_FCALL                                          0  $1      
          4        CONCAT                                               ~2      $1, '%2C+%D0%BD%D0%BE+%D1%81%D0%BB%D0%B0%D0%B4%D0%BA%D0%BE%D0%B5'
          5        VERIFY_RETURN_TYPE                                           ~2
          6      > RETURN                                                       ~2
   23     7*       VERIFY_RETURN_TYPE                                           
          8*     > RETURN                                                       null

End of function docandystuff

End of class MyGoodClass.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
185.38 ms | 2083 KiB | 13 Q