3v4l.org

run code in 300+ PHP versions simultaneously
<?php class c { var $v = ''; } function cf($c, $v) { $c->v = $v; } $c = new c(); cf($c, '123'); var_dump($c); //output php5 //output php4
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rRotG
function name:  (null)
number of ops:  11
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $1      'c'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   13     3        INIT_FCALL                                               'cf'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 '123'
          6        DO_FCALL                                      0          
   15     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
   18    10      > RETURN                                                   1

Function cf:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rRotG
function name:  cf
number of ops:  5
compiled vars:  !0 = $c, !1 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    9     2        ASSIGN_OBJ                                               !0, 'v'
          3        OP_DATA                                                  !1
   10     4      > RETURN                                                   null

End of function cf

Class c: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.86 ms | 1389 KiB | 16 Q