3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.05 ms | 1394 KiB | 19 Q