3v4l.org

run code in 300+ PHP versions simultaneously
<?php class cp2 { protected $a; protected $m; protected $t=3; public function tiga($a,$m) { echo "set alas dan set miring".$this->tiga(); } } $segitiga = new cp2 (); echo $segitiga->tiga(4,5); echo PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pIGi3
function name:  (null)
number of ops:  10
compiled vars:  !0 = $segitiga
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $1      'cp2'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   15     3        INIT_METHOD_CALL                                         !0, 'tiga'
          4        SEND_VAL_EX                                              4
          5        SEND_VAL_EX                                              5
          6        DO_FCALL                                      0  $4      
          7        ECHO                                                     $4
   16     8        ECHO                                                     '%0A'
   17     9      > RETURN                                                   1

Class cp2:
Function tiga:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pIGi3
function name:  tiga
number of ops:  7
compiled vars:  !0 = $a, !1 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   10     2        INIT_METHOD_CALL                                         'tiga'
          3        DO_FCALL                                      0  $2      
          4        CONCAT                                           ~3      'set+alas+dan+set+miring', $2
          5        ECHO                                                     ~3
   11     6      > RETURN                                                   null

End of function tiga

End of class cp2.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.14 ms | 1394 KiB | 13 Q