3v4l.org

run code in 300+ PHP versions simultaneously
<?php (function ($a, $b) { var_dump($this); var_dump($a, $b); })->bindto(new stdclass, null)("a", "b");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E66tF
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FE66tF%3A3%240'
    6     1        INIT_METHOD_CALL                                         ~0, 'bindto'
          2        NEW                                              $1      'stdclass'
          3        DO_FCALL                                      0          
          4        SEND_VAR_NO_REF_EX                                       $1
          5        SEND_VAL_EX                                              null
          6        DO_FCALL                                      0  $3      
          7        INIT_DYNAMIC_CALL                                        $3
          8        SEND_VAL_EX                                              'a'
          9        SEND_VAL_EX                                              'b'
         10        DO_FCALL                                      0          
         11      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FE66tF%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E66tF
function name:  {closure}
number of ops:  11
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        INIT_FCALL                                               'var_dump'
          3        FETCH_THIS                                       ~2      
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
    6    10      > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.81 ms | 1395 KiB | 15 Q