3v4l.org

run code in 300+ PHP versions simultaneously
<?php $closure = function(){ /* This template demonstrates a typical piece of code that will execute normally under the default PHPSandbox configuration */ function it() { echo 'This is it'; } it(); }; if(method_exists($closure, "bindTo")){ $closure = $closure->bindTo(null); } return $closure();
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/3kso9
function name:  (null)
number of ops:  15
compiled vars:  !0 = $closure
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F3kso9%3A3%240'
          1        ASSIGN                                                   !0, ~1
   14     2        INIT_FCALL                                               'method_exists'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 'bindTo'
          5        DO_ICALL                                         $3      
          6      > JMPZ                                                     $3, ->11
          7    >   INIT_METHOD_CALL                                         !0, 'bindTo'
          8        SEND_VAL_EX                                              null
          9        DO_FCALL                                      0  $4      
         10        ASSIGN                                                   !0, $4
   15    11    >   INIT_DYNAMIC_CALL                                        !0
         12        DO_FCALL                                      0  $6      
         13      > RETURN                                                   $6
         14*     > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F3kso9%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3kso9
function name:  {closure}
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   DECLARE_FUNCTION                                         'it'
   12     1        INIT_FCALL_BY_NAME                                       'it'
          2        DO_FCALL                                      0          
   13     3      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F3kso9%3A3%240

Function %00it%2Fin%2F3kso9%3A8%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3kso9
function name:  it
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ECHO                                                     'This+is+it'
   11     1      > RETURN                                                   null

End of function %00it%2Fin%2F3kso9%3A8%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.52 ms | 1388 KiB | 15 Q