3v4l.org

run code in 300+ PHP versions simultaneously
<?php final class C { public $p; } function slow($x) { echo $x->p; } function fast(C $x) { echo $x->p; } slow(new C()); fast(new C());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OQoIi
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               'slow'
          1        NEW                                              $0      'C'
          2        DO_FCALL                                      0          
          3        SEND_VAR                                                 $0
          4        DO_FCALL                                      0          
   16     5        INIT_FCALL                                               'fast'
          6        NEW                                              $3      'C'
          7        DO_FCALL                                      0          
          8        SEND_VAR                                                 $3
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Function slow:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OQoIi
function name:  slow
number of ops:  4
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        FETCH_OBJ_R                                      ~1      !0, 'p'
          2        ECHO                                                     ~1
    9     3      > RETURN                                                   null

End of function slow

Function fast:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OQoIi
function name:  fast
number of ops:  4
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   12     1        FETCH_OBJ_R                                      ~1      !0, 'p'
          2        ECHO                                                     ~1
   13     3      > RETURN                                                   null

End of function fast

Class C: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
257.16 ms | 1003 KiB | 15 Q