3v4l.org

run code in 300+ PHP versions simultaneously
<?php function one($name, $callback) { var_export(is_callable($callback)); if (is_callable($callback)) { $callback(strrev($name)); } } one('Chandra', function ($result) { echo $result; });
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:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'one'
          1        SEND_VAL                                                 'Chandra'
          2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F6op0X%3A12%240'
   14     3        SEND_VAL                                                 ~0
          4        DO_FCALL                                      0          
          5      > 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%2F6op0X%3A12%240:
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%2F6op0X%3A12%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.94 ms | 1399 KiB | 20 Q