3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $f = function() {}; var_dump($f()); // 'null' var_dump(function() {}); // 'object(Closure)[1]'
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/YcO5A
function name:  (null)
number of ops:  12
compiled vars:  !0 = $f
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FYcO5A0x7fed6fa0d017'
         1        ASSIGN                                                   !0, ~1
   3     2        INIT_FCALL                                               'var_dump'
         3        INIT_DYNAMIC_CALL                                        !0
         4        DO_FCALL                                      0  $3      
         5        SEND_VAR                                                 $3
         6        DO_ICALL                                                 
   5     7        INIT_FCALL                                               'var_dump'
         8        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FYcO5A0x7fed6fa0d04a'
         9        SEND_VAL                                                 ~5
        10        DO_ICALL                                                 
        11      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FYcO5A0x7fed6fa0d017:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/YcO5A
function name:  {closure}
number of ops:  1
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E > > RETURN                                                   null

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

Function %00%7Bclosure%7D%2Fin%2FYcO5A0x7fed6fa0d04a:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/YcO5A
function name:  {closure}
number of ops:  1
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   5     0  E > > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 7.2.0