3v4l.org

run code in 300+ PHP versions simultaneously
<?php return (function(){ $temp = 10; $bla = 20; return [$temp, $bla]; })();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aNNHv
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FaNNHv%3A1%240'
    8     1        INIT_DYNAMIC_CALL                                        ~0
          2        DO_FCALL                                      0  $1      
          3      > RETURN                                                   $1
          4*     > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FaNNHv%3A1%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aNNHv
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $temp, !1 = $bla
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 10
    5     1        ASSIGN                                                   !1, 20
    7     2        INIT_ARRAY                                       ~4      !0
          3        ADD_ARRAY_ELEMENT                                ~4      !1
          4      > RETURN                                                   ~4
    8     5*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FaNNHv%3A1%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.83 ms | 1403 KiB | 13 Q