3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Some\Name\Space; use stdClass; $x = new \stdClass; $x->name = "Foobar"; $x->getTheFuckOut = function(){ return "Foo"; }; var_dump( $x->getTheFuckOut );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FimdK
function name:  (null)
number of ops:  14
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NEW                                              $1      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    6     3        ASSIGN_OBJ                                               !0, 'name'
          4        OP_DATA                                                  'Foobar'
    7     5        DECLARE_LAMBDA_FUNCTION                                  '%00some%5Cname%5Cspace%5C%7Bclosure%7D%2Fin%2FFimdK%3A7%240'
          6        ASSIGN_OBJ                                               !0, 'getTheFuckOut'
    9     7        OP_DATA                                                  ~6
   11     8        INIT_NS_FCALL_BY_NAME                                    'Some%5CName%5CSpace%5Cvar_dump'
          9        CHECK_FUNC_ARG                                           
         10        FETCH_OBJ_FUNC_ARG                               $7      !0, 'getTheFuckOut'
         11        SEND_FUNC_ARG                                            $7
         12        DO_FCALL                                      0          
         13      > RETURN                                                   1

Function %00some%5Cname%5Cspace%5C%7Bclosure%7D%2Fin%2FFimdK%3A7%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FimdK
function name:  Some\Name\Space\{closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E > > RETURN                                                   'Foo'
    9     1*     > RETURN                                                   null

End of function %00some%5Cname%5Cspace%5C%7Bclosure%7D%2Fin%2FFimdK%3A7%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.43 ms | 1386 KiB | 15 Q