3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = function ($a, $b, $c) { return "$a$b$c"; }; echo $x(1,2,3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XShcW
function name:  (null)
number of ops:  9
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FXShcW%3A3%240'
          1        ASSIGN                                                   !0, ~1
    6     2        INIT_DYNAMIC_CALL                                        !0
          3        SEND_VAL_EX                                              1
          4        SEND_VAL_EX                                              2
          5        SEND_VAL_EX                                              3
          6        DO_FCALL                                      0  $3      
          7        ECHO                                                     $3
          8      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FXShcW%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XShcW
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    4     3        ROPE_INIT                                     3  ~4      !0
          4        ROPE_ADD                                      1  ~4      ~4, !1
          5        ROPE_END                                      2  ~3      ~4, !2
          6      > RETURN                                                   ~3
    5     7*     > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.39 ms | 1393 KiB | 13 Q