3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_request() { return "30 "; } $ent = new stdClass; $ent->menge = (float)get_request(); $ent = unserialize(serialize($ent)); $a = function(&$et) { $e = unserialize(serialize($et)); $et = &$e; return $et; }; $ent = $a($ent); $t = new stdClass; $t->flt_menge = '10.665'; $flt_menge = &$t->flt_menge; $t2 = clone $ent; $ent->menge = $t->flt_menge; var_dump(bcsub($ent->menge, $flt_menge)); exit;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/7Dtvh
function name:  (null)
number of ops:  44
compiled vars:  !0 = $ent, !1 = $a, !2 = $t, !3 = $flt_menge, !4 = $t2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $5      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $5
    8     3        INIT_FCALL                                               'get_request'
          4        DO_FCALL                                      0  $9      
          5        CAST                                          5  ~10     $9
          6        ASSIGN_OBJ                                               !0, 'menge'
          7        OP_DATA                                                  ~10
    9     8        INIT_FCALL                                               'unserialize'
          9        INIT_FCALL                                               'serialize'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $11     
         12        SEND_VAR                                                 $11
         13        DO_ICALL                                         $12     
         14        ASSIGN                                                   !0, $12
   11    15        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F7Dtvh%3A11%240'
         16        ASSIGN                                                   !1, ~14
   18    17        INIT_DYNAMIC_CALL                                        !1
         18        SEND_VAR_EX                                              !0
         19        DO_FCALL                                      0  $16     
         20        ASSIGN                                                   !0, $16
   20    21        NEW                                              $18     'stdClass'
         22        DO_FCALL                                      0          
         23        ASSIGN                                                   !2, $18
   21    24        ASSIGN_OBJ                                               !2, 'flt_menge'
         25        OP_DATA                                                  '10.665'
   23    26        FETCH_OBJ_W                                      $22     !2, 'flt_menge'
         27        ASSIGN_REF                                               !3, $22
   25    28        CLONE                                            ~24     !0
         29        ASSIGN                                                   !4, ~24
   26    30        FETCH_OBJ_R                                      ~27     !2, 'flt_menge'
         31        ASSIGN_OBJ                                               !0, 'menge'
         32        OP_DATA                                                  ~27
   30    33        INIT_FCALL                                               'var_dump'
         34        INIT_FCALL_BY_NAME                                       'bcsub'
         35        CHECK_FUNC_ARG                                           
         36        FETCH_OBJ_FUNC_ARG                               $28     !0, 'menge'
         37        SEND_FUNC_ARG                                            $28
         38        SEND_VAR_EX                                              !3
         39        DO_FCALL                                      0  $29     
         40        SEND_VAR                                                 $29
         41        DO_ICALL                                                 
         42      > EXIT                                                     
         43*     > RETURN                                                   1

Function get_request:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7Dtvh
function name:  get_request
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   '30+'
    5     1*     > RETURN                                                   null

End of function get_request

Function %00%7Bclosure%7D%2Fin%2F7Dtvh%3A11%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7Dtvh
function name:  {closure}
number of ops:  11
compiled vars:  !0 = $et, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   13     1        INIT_FCALL                                               'unserialize'
          2        INIT_FCALL                                               'serialize'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                         $3      
          7        ASSIGN                                                   !1, $3
   14     8        ASSIGN_REF                                               !0, !1
   15     9      > RETURN                                                   !0
   16    10*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F7Dtvh%3A11%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.76 ms | 1407 KiB | 20 Q