3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ContaCorrente extends Conta { public $limite; function __construct($agencia, $codigo, $datacriacao, $titular, $senha, $saldoinicial, $limite) { parent::__construct($agencia, $codigo, $datacriacao, $titular, $senha, $saldoinicial); $this->limite = $limite; } function retirar($quantia) { $cpmf = 0.05; if (($this->saldo + $this->limite) >= $quantia) { parent::retirar($quantia); parent::retirar($quantia * $cpmf); } else return FALSE; return TRUE; } } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dUgll
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'contacorrente', 'conta'
   30     1      > RETURN                                                   1

Class ContaCorrente:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dUgll
function name:  __construct
number of ops:  18
compiled vars:  !0 = $agencia, !1 = $codigo, !2 = $datacriacao, !3 = $titular, !4 = $senha, !5 = $saldoinicial, !6 = $limite
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
          4        RECV                                             !4      
          5        RECV                                             !5      
          6        RECV                                             !6      
    9     7        INIT_STATIC_METHOD_CALL                                  
          8        SEND_VAR_EX                                              !0
          9        SEND_VAR_EX                                              !1
         10        SEND_VAR_EX                                              !2
         11        SEND_VAR_EX                                              !3
         12        SEND_VAR_EX                                              !4
         13        SEND_VAR_EX                                              !5
         14        DO_FCALL                                      0          
   10    15        ASSIGN_OBJ                                               'limite'
         16        OP_DATA                                                  !6
   11    17      > RETURN                                                   null

End of function __construct

Function retirar:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 15
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dUgll
function name:  retirar
number of ops:  18
compiled vars:  !0 = $quantia, !1 = $cpmf
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
   15     1        ASSIGN                                                   !1, 0.05
   17     2        FETCH_OBJ_R                                      ~3      'saldo'
          3        FETCH_OBJ_R                                      ~4      'limite'
          4        ADD                                              ~5      ~3, ~4
          5        IS_SMALLER_OR_EQUAL                                      !0, ~5
          6      > JMPZ                                                     ~6, ->15
   19     7    >   INIT_STATIC_METHOD_CALL                                  'retirar'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
   20    10        INIT_STATIC_METHOD_CALL                                  'retirar'
         11        MUL                                              ~8      !0, !1
         12        SEND_VAL_EX                                              ~8
         13        DO_FCALL                                      0          
         14      > JMP                                                      ->16
   23    15    > > RETURN                                                   <false>
   25    16    > > RETURN                                                   <true>
   26    17*     > RETURN                                                   null

End of function retirar

End of class ContaCorrente.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.69 ms | 1399 KiB | 13 Q