3v4l.org

run code in 300+ PHP versions simultaneously
<?php $assoc = array(15,0,19,1,42,3); function test_context($in_array){ sort($in_array); return(0); } test_context($assoc); print_r($assoc); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4j2tu
function name:  (null)
number of ops:  8
compiled vars:  !0 = $assoc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1        INIT_FCALL                                               'test_context'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0          
   12     4        INIT_FCALL                                               'print_r'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
   14     7      > RETURN                                                   1

Function test_context:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4j2tu
function name:  test_context
number of ops:  6
compiled vars:  !0 = $in_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        INIT_FCALL                                               'sort'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                                 
    7     4      > RETURN                                                   0
    8     5*     > RETURN                                                   null

End of function test_context

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.1 ms | 1397 KiB | 18 Q