3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a1 = array("123", "45", "678"); sort($a1); var_dump($a1); $a2 = array("45", "678", "123"); sort($a2); var_dump($a2); $a3 = array("123", "45", "678"); sort($a3); var_dump($a3);
based on 6C6Il
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/064Ca
function name:  (null)
number of ops:  22
compiled vars:  !0 = $a1, !1 = $a2, !2 = $a3
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   ASSIGN                                                   !0, <array>
   3     1        INIT_FCALL                                               'sort'
         2        SEND_REF                                                 !0
         3        DO_ICALL                                                 
   4     4        INIT_FCALL                                               'var_dump'
         5        SEND_VAR                                                 !0
         6        DO_ICALL                                                 
   6     7        ASSIGN                                                   !1, <array>
   7     8        INIT_FCALL                                               'sort'
         9        SEND_REF                                                 !1
        10        DO_ICALL                                                 
   8    11        INIT_FCALL                                               'var_dump'
        12        SEND_VAR                                                 !1
        13        DO_ICALL                                                 
  10    14        ASSIGN                                                   !2, <array>
  11    15        INIT_FCALL                                               'sort'
        16        SEND_REF                                                 !2
        17        DO_ICALL                                                 
  12    18        INIT_FCALL                                               'var_dump'
        19        SEND_VAR                                                 !2
        20        DO_ICALL                                                 
        21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0