3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { } function createParam() { print('createParam called'); return 'param be here'; } $v = new MyClass(createParam());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b2Fnl
function name:  (null)
number of ops:  7
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $1      'MyClass'
          1        INIT_FCALL                                               'createparam'
          2        DO_FCALL                                      0  $2      
          3        SEND_VAR_NO_REF_EX                                       $2
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $1
          6      > RETURN                                                   1

Function createparam:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b2Fnl
function name:  createParam
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     'createParam+called'
    8     1      > RETURN                                                   'param+be+here'
    9     2*     > RETURN                                                   null

End of function createparam

Class MyClass: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.88 ms | 1396 KiB | 14 Q