3v4l.org

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

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

End of function %00%7Bclosure%7D%2Fin%2FfUEjp%3A4%240

Function %00%7Bclosure%7D%2Fin%2FfUEjp%3A5%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fUEjp
function name:  {closure}
number of ops:  3
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
          2      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FfUEjp%3A5%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.02 ms | 1394 KiB | 13 Q