3v4l.org

run code in 300+ PHP versions simultaneously
<?php function hello($nice, $callback) { $callback(); echo $nice; } hello("nice ", function(){ echo 'can php do dis?'; });
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CmEfT
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'hello'
          1        SEND_VAL                                                 'nice+'
          2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FCmEfT%3A9%240'
   13     3        SEND_VAL                                                 ~0
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Function hello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CmEfT
function name:  hello
number of ops:  6
compiled vars:  !0 = $nice, !1 = $callback
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        INIT_DYNAMIC_CALL                                        !1
          3        DO_FCALL                                      0          
    6     4        ECHO                                                     !0
    7     5      > RETURN                                                   null

End of function hello

Function %00%7Bclosure%7D%2Fin%2FCmEfT%3A9%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CmEfT
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ECHO                                                     'can+php+do+dis%3F'
   13     1      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FCmEfT%3A9%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.46 ms | 1397 KiB | 14 Q