3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function one($name, $callback) { var_export(is_callable($callback)); if (is_callable($callback)) { $callback(strrev($name)); } } one('Chandra', function ($result) { echo $result; });
based on m79E3
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6op0X
function name:  (null)
number of ops:  7
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
  12     1        INIT_FCALL                                               'one'
         2        SEND_VAL                                                 'Chandra'
         3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F6op0X0x7f737a0790d4'
  14     4        SEND_VAL                                                 ~0
         5        DO_FCALL                                      0          
         6      > RETURN                                                   1

Function one:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 18
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/6op0X
function name:  one
number of ops:  19
compiled vars:  !0 = $name, !1 = $callback
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   RECV                                             !0      
         1        RECV                                             !1      
   5     2        INIT_FCALL                                               'var_export'
         3        INIT_FCALL                                               'is_callable'
         4        SEND_VAR                                                 !1
         5        DO_ICALL                                         $2      
         6        SEND_VAR                                                 $2
         7        DO_ICALL                                                 
   6     8        INIT_FCALL                                               'is_callable'
         9        SEND_VAR                                                 !1
        10        DO_ICALL                                         $4      
        11      > JMPZ                                                     $4, ->18
   7    12    >   INIT_DYNAMIC_CALL                                        !1
        13        INIT_FCALL                                               'strrev'
        14        SEND_VAR                                                 !0
        15        DO_ICALL                                         $5      
        16        SEND_VAR_NO_REF_EX                                       $5
        17        DO_FCALL                                      0          
   9    18    > > RETURN                                                   null

End of function one

Function %00%7Bclosure%7D%2Fin%2F6op0X0x7f737a0790d4:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6op0X
function name:  {closure}
number of ops:  3
compiled vars:  !0 = $result
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  12     0  E >   RECV                                             !0      
  13     1        ECHO                                                     !0
  14     2      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F6op0X0x7f737a0790d4

Generated using Vulcan Logic Dumper, using php 7.3.0