3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = function(){ return 'bla'; }; function SendBla($f) { return $f; } function ReceiveBla($f) { echo $f; } ReceiveBla( SendBla($f));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3fNgA
function name:  (null)
number of ops:  9
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F3fNgA%3A3%240'
          1        ASSIGN                                                   !0, ~1
   14     2        INIT_FCALL                                               'receivebla'
          3        INIT_FCALL                                               'sendbla'
          4        SEND_VAR                                                 !0
          5        DO_FCALL                                      0  $3      
          6        SEND_VAR                                                 $3
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F3fNgA%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3fNgA
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > RETURN                                                   'bla'
          1*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F3fNgA%3A3%240

Function sendbla:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3fNgA
function name:  SendBla
number of ops:  3
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1      > RETURN                                                   !0
    8     2*     > RETURN                                                   null

End of function sendbla

Function receivebla:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3fNgA
function name:  ReceiveBla
number of ops:  3
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   11     1        ECHO                                                     !0
   12     2      > RETURN                                                   null

End of function receivebla

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.52 ms | 1402 KiB | 15 Q