3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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
Jump found. Position 1 = -2
filename:       /in/FimdK
function name:  (null)
number of ops:  13
compiled vars:  !0 = $x
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   5     0  E >   NEW                                              $1      :-6
         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%2FFimdK0x7f04c5a2508b'
         6        ASSIGN_OBJ                                               !0, 'getTheFuckOut'
   9     7        OP_DATA                                                  ~6
  11     8        INIT_NS_FCALL_BY_NAME                                    
         9        FETCH_OBJ_FUNC_ARG                               $7      !0, 'getTheFuckOut'
        10        SEND_VAR_EX                                              $7
        11        DO_FCALL                                      0          
        12      > RETURN                                                   1

Function %00some%5Cname%5Cspace%5C%7Bclosure%7D%2Fin%2FFimdK0x7f04c5a2508b:
Finding entry points
Branch analysis from position: 0
Jump found. 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%2FFimdK0x7f04c5a2508b

Generated using Vulcan Logic Dumper, using php 7.2.0