3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr=[1,2,5,2,77,33]; sort($arr); var_dump($arr); $a=2;$b=5; list($b,$a)=array($a,$b); echo $a,$b;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FJNWF
function name:  (null)
number of ops:  19
compiled vars:  !0 = $arr, !1 = $a, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'sort'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                                 
    6     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    7     7        ASSIGN                                                   !1, 2
          8        ASSIGN                                                   !2, 5
    8     9        INIT_ARRAY                                       ~8      !1
         10        ADD_ARRAY_ELEMENT                                ~8      !2
         11        FETCH_LIST_R                                     $9      ~8, 0
         12        ASSIGN                                                   !2, $9
         13        FETCH_LIST_R                                     $11     ~8, 1
         14        ASSIGN                                                   !1, $11
         15        FREE                                                     ~8
    9    16        ECHO                                                     !1
         17        ECHO                                                     !2
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.67 ms | 1394 KiB | 17 Q