3v4l.org

run code in 300+ PHP versions simultaneously
<?php $it = new ArrayIterator(array_fill(0,10,'X'), 1 ); function badsort($a, $b) { $GLOBALS['it']->unserialize($GLOBALS['it']->serialize()); return TRUE; } $it->uksort('badsort');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fkbIJ
function name:  (null)
number of ops:  14
compiled vars:  !0 = $it
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'ArrayIterator'
          1        INIT_FCALL                                               'array_fill'
          2        SEND_VAL                                                 0
          3        SEND_VAL                                                 10
          4        SEND_VAL                                                 'X'
          5        DO_ICALL                                         $2      
          6        SEND_VAR_NO_REF_EX                                       $2
          7        SEND_VAL_EX                                              1
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !0, $1
    9    10        INIT_METHOD_CALL                                         !0, 'uksort'
         11        SEND_VAL_EX                                              'badsort'
         12        DO_FCALL                                      0          
         13      > RETURN                                                   1

Function badsort:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fkbIJ
function name:  badsort
number of ops:  13
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        FETCH_R                      global              ~2      'GLOBALS'
          3        FETCH_DIM_R                                      ~3      ~2, 'it'
          4        INIT_METHOD_CALL                                         ~3, 'unserialize'
          5        FETCH_R                      global              ~4      'GLOBALS'
          6        FETCH_DIM_R                                      ~5      ~4, 'it'
          7        INIT_METHOD_CALL                                         ~5, 'serialize'
          8        DO_FCALL                                      0  $6      
          9        SEND_VAR_NO_REF_EX                                       $6
         10        DO_FCALL                                      0          
    6    11      > RETURN                                                   <true>
    7    12*     > RETURN                                                   null

End of function badsort

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.51 ms | 1395 KiB | 15 Q