3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( 't' => function ($m) { return str_repeat('_', 5);}, 'v' => str_repeat('+', 3) ); print_r($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0S7uI
function name:  (null)
number of ops:  12
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F0S7uI%3A4%240'
          1        INIT_ARRAY                                       ~2      ~1, 't'
    5     2        INIT_FCALL                                               'str_repeat'
          3        SEND_VAL                                                 '%2B'
          4        SEND_VAL                                                 3
          5        DO_ICALL                                         $3      
          6        ADD_ARRAY_ELEMENT                                ~2      $3, 'v'
    3     7        ASSIGN                                                   !0, ~2
    7     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F0S7uI%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0S7uI
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'str_repeat'
          2        SEND_VAL                                                 '_'
          3        SEND_VAL                                                 5
          4        DO_ICALL                                         $1      
          5      > RETURN                                                   $1
          6*     > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.71 ms | 1395 KiB | 17 Q