3v4l.org

run code in 300+ PHP versions simultaneously
<?php class F { private float $f; public function setF($m) { $this->f = $m; var_dump($this->f); } } $f = new F(); $f->setF(true); $f->setF(false); $f->setF(1); $f->setF(1.11); $f->setF(null);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qnsMN
function name:  (null)
number of ops:  19
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $1      'F'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   13     3        INIT_METHOD_CALL                                         !0, 'setF'
          4        SEND_VAL_EX                                              <true>
          5        DO_FCALL                                      0          
   14     6        INIT_METHOD_CALL                                         !0, 'setF'
          7        SEND_VAL_EX                                              <false>
          8        DO_FCALL                                      0          
   15     9        INIT_METHOD_CALL                                         !0, 'setF'
         10        SEND_VAL_EX                                              1
         11        DO_FCALL                                      0          
   16    12        INIT_METHOD_CALL                                         !0, 'setF'
         13        SEND_VAL_EX                                              1.11
         14        DO_FCALL                                      0          
   17    15        INIT_METHOD_CALL                                         !0, 'setF'
         16        SEND_VAL_EX                                              null
         17        DO_FCALL                                      0          
         18      > RETURN                                                   1

Class F:
Function setf:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qnsMN
function name:  setF
number of ops:  8
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        ASSIGN_OBJ                                               'f'
          2        OP_DATA                                                  !0
    8     3        INIT_FCALL                                               'var_dump'
          4        FETCH_OBJ_R                                      ~2      'f'
          5        SEND_VAL                                                 ~2
          6        DO_ICALL                                                 
    9     7      > RETURN                                                   null

End of function setf

End of class F.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.08 ms | 1005 KiB | 14 Q