3v4l.org

run code in 300+ PHP versions simultaneously
<? $a = new AAA; class AAA { public function render($datum) { echo " a volame callback"; echo "datum" . $datum; } } function Jmeno($name, $callback) { $lokalniPrommena = "v " . date("H:i:s"); echo "Ahoj $name <br />"; $callback($lokalniPrommena); } Jmeno('Romanek', $a->render); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CqrkO
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $1      'AAA'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   28     3        INIT_FCALL                                               'jmeno'
          4        SEND_VAL                                                 'Romanek'
          5        FETCH_OBJ_R                                      ~4      !0, 'render'
          6        SEND_VAL                                                 ~4
          7        DO_FCALL                                      0          
   31     8      > RETURN                                                   1

Function jmeno:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CqrkO
function name:  Jmeno
number of ops:  15
compiled vars:  !0 = $name, !1 = $callback, !2 = $lokalniPrommena
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   23     2        INIT_FCALL                                               'date'
          3        SEND_VAL                                                 'H%3Ai%3As'
          4        DO_ICALL                                         $3      
          5        CONCAT                                           ~4      'v+', $3
          6        ASSIGN                                                   !2, ~4
   24     7        ROPE_INIT                                     3  ~7      'Ahoj+'
          8        ROPE_ADD                                      1  ~7      ~7, !0
          9        ROPE_END                                      2  ~6      ~7, '+%3Cbr+%2F%3E'
         10        ECHO                                                     ~6
   25    11        INIT_DYNAMIC_CALL                                        !1
         12        SEND_VAR_EX                                              !2
         13        DO_FCALL                                      0          
   26    14      > RETURN                                                   null

End of function jmeno

Class AAA:
Function render:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CqrkO
function name:  render
number of ops:  5
compiled vars:  !0 = $datum
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   11     1        ECHO                                                     '+a+volame+callback'
   12     2        CONCAT                                           ~1      'datum', !0
          3        ECHO                                                     ~1
   13     4      > RETURN                                                   null

End of function render

End of class AAA.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.75 ms | 1399 KiB | 16 Q