3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1,5,16,7,4); $b = $a; asort($b); var_dump($b); $a = array_intersect_keys($b, $a); var_dump($a); array_walk($a, function(&$value) { ++$value; }); var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hR85s
function name:  (null)
number of ops:  25
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, !0
    5     2        INIT_FCALL                                               'asort'
          3        SEND_REF                                                 !1
          4        DO_ICALL                                                 
    6     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
    8     8        INIT_FCALL_BY_NAME                                       'array_intersect_keys'
          9        SEND_VAR_EX                                              !1
         10        SEND_VAR_EX                                              !0
         11        DO_FCALL                                      0  $6      
         12        ASSIGN                                                   !0, $6
    9    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
   11    16        INIT_FCALL                                               'array_walk'
         17        SEND_REF                                                 !0
         18        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FhR85s%3A11%240'
         19        SEND_VAL                                                 ~9
         20        DO_ICALL                                                 
   12    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

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

End of function %00%7Bclosure%7D%2Fin%2FhR85s%3A11%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.36 ms | 1396 KiB | 19 Q