3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=array("10", 2, 53, "2.5", "banana", "0"); $b = $a; $c = $b; sort($a); sort($b, SORT_NUMERIC); sort($c, SORT_STRING); var_dump($a); var_dump($b); var_dump($c);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cHmkf
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, !0
    6     2        ASSIGN                                                   !2, !1
    8     3        INIT_FCALL                                               'sort'
          4        SEND_REF                                                 !0
          5        DO_ICALL                                                 
    9     6        INIT_FCALL                                               'sort'
          7        SEND_REF                                                 !1
          8        SEND_VAL                                                 1
          9        DO_ICALL                                                 
   10    10        INIT_FCALL                                               'sort'
         11        SEND_REF                                                 !2
         12        SEND_VAL                                                 2
         13        DO_ICALL                                                 
   12    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
   13    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                                 
   14    20        INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !2
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
191.76 ms | 1395 KiB | 17 Q