3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Mobil { private $roda = 4; protected function jalan() { echo 'Mobil berjalan'; } public function jumlahRoda() { echo $this->roda; } } $avanza = new Mobil(); echo $avanza->jalan(); echo PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qPsFG
function name:  (null)
number of ops:  8
compiled vars:  !0 = $avanza
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $1      'Mobil'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   20     3        INIT_METHOD_CALL                                         !0, 'jalan'
          4        DO_FCALL                                      0  $4      
          5        ECHO                                                     $4
   21     6        ECHO                                                     '%0A'
          7      > RETURN                                                   1

Class Mobil:
Function jalan:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qPsFG
function name:  jalan
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                     'Mobil+berjalan'
   10     1      > RETURN                                                   null

End of function jalan

Function jumlahroda:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qPsFG
function name:  jumlahRoda
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   FETCH_OBJ_R                                      ~0      'roda'
          1        ECHO                                                     ~0
   15     2      > RETURN                                                   null

End of function jumlahroda

End of class Mobil.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
124.97 ms | 1398 KiB | 13 Q