3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(~0); $a = array(array(), 1, (object) array()); sort($a); print_r($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pORgH
function name:  (null)
number of ops:  15
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      <array>
          4        ADD_ARRAY_ELEMENT                                ~2      1
          5        CAST                                          8  ~3      <array>
          6        ADD_ARRAY_ELEMENT                                ~2      ~3
          7        ASSIGN                                                   !0, ~2
    4     8        INIT_FCALL                                               'sort'
          9        SEND_REF                                                 !0
         10        DO_ICALL                                                 
    5    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.5 ms | 1394 KiB | 19 Q