3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Car { public function paint () { echo " ________ "; echo "\n"; echo "/ \__"; echo "\n"; echo "|___________\\"; echo "\n"; echo " O O"; echo "\n"; } } class Sedan extends Car { } $sedan = new Sedan; $sedan->paint();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hXMfX
function name:  (null)
number of ops:  6
compiled vars:  !0 = $sedan
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $1      'Sedan'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   17     3        INIT_METHOD_CALL                                         !0, 'paint'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Car:
Function paint:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hXMfX
function name:  paint
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     '+________+++'
          1        ECHO                                                     '%0A'
    6     2        ECHO                                                     '%2F++++++++%5C__'
          3        ECHO                                                     '%0A'
    7     4        ECHO                                                     '%7C___________%5C'
          5        ECHO                                                     '%0A'
    8     6        ECHO                                                     '++O++++++O'
          7        ECHO                                                     '%0A'
    9     8      > RETURN                                                   null

End of function paint

End of class Car.

Class Sedan:
Function paint:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hXMfX
function name:  paint
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     '+________+++'
          1        ECHO                                                     '%0A'
    6     2        ECHO                                                     '%2F++++++++%5C__'
          3        ECHO                                                     '%0A'
    7     4        ECHO                                                     '%7C___________%5C'
          5        ECHO                                                     '%0A'
    8     6        ECHO                                                     '++O++++++O'
          7        ECHO                                                     '%0A'
    9     8      > RETURN                                                   null

End of function paint

End of class Sedan.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.22 ms | 1008 KiB | 13 Q