3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump('abc' < 10); $x = array('abc', 'ddd', 'bbb', 10, 'www', 0); sort($x); var_dump($x); $x = array('abc', 'ddd', 'bbb', 0, 'www', 10); sort($x); var_dump($x); $x = array('abc', 0, 'aaa', 10); sort($x); var_dump($x); $x = array(0, 'aaa', 10, 5, 'a', 'wat'); sort($x); var_dump($x);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sbEaV
function name:  (null)
number of ops:  32
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 <false>
          2        DO_ICALL                                                 
    4     3        ASSIGN                                                   !0, <array>
    5     4        INIT_FCALL                                               'sort'
          5        SEND_REF                                                 !0
          6        DO_ICALL                                                 
    6     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
    8    10        ASSIGN                                                   !0, <array>
    9    11        INIT_FCALL                                               'sort'
         12        SEND_REF                                                 !0
         13        DO_ICALL                                                 
   10    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
   12    17        ASSIGN                                                   !0, <array>
   13    18        INIT_FCALL                                               'sort'
         19        SEND_REF                                                 !0
         20        DO_ICALL                                                 
   14    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                                 
   16    24        ASSIGN                                                   !0, <array>
   17    25        INIT_FCALL                                               'sort'
         26        SEND_REF                                                 !0
         27        DO_ICALL                                                 
   18    28        INIT_FCALL                                               'var_dump'
         29        SEND_VAR                                                 !0
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.73 ms | 1395 KiB | 17 Q