3v4l.org

run code in 500+ PHP versions simultaneously
<?php $i++; $array[$i] = "12A"; foreach ($array[0] as $empty); $array[1][3.1] = sprintf("%s", [$array[1][0]]); file_get_contents($array[1] + $array[1]->prop); class Warnings { static $static = "value"; function __construct() { $this->static; $this->method(); } static function method() { } } array_push($array, new Warnings(), 5, 6); $sorter = (static function(&$array) { sort($array); })->bindTo($array[2]) ?? "sort"; $arguments = new ArrayIterator([$array]); $sorter(...$arguments);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/l8pSY
function name:  (null)
number of ops:  49
compiled vars:  !0 = $i, !1 = $array, !2 = $empty, !3 = $sorter, !4 = $arguments
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   PRE_INC                                                      !0
    4     1        ASSIGN_DIM                                                   !1, !0
          2        OP_DATA                                                      '12A'
    5     3        FETCH_DIM_R                                          ~7      !1, 0
          4      > FE_RESET_R                                           $8      ~7, ->7
          5    > > FE_FETCH_R                                                   $8, !2, ->7
          6    > > JMP                                                          ->5
          7    >   FE_FREE                                                      $8
    6     8        FETCH_DIM_R                                          ~11     !1, 1
          9        FETCH_DIM_R                                          ~12     ~11, 0
         10        INIT_ARRAY                                           ~13     ~12
         11        CAST                                              6  ~14     ~13
         12        FETCH_DIM_W                                          $9      !1, 1
         13        ASSIGN_DIM                                                   $9, 3.1
         14        OP_DATA                                                      ~14
    7    15        INIT_FCALL                                                   'file_get_contents'
         16        FETCH_DIM_R                                          ~15     !1, 1
         17        FETCH_DIM_R                                          ~16     !1, 1
         18        FETCH_OBJ_R                                          ~17     ~16, 'prop'
         19        ADD                                                  ~18     ~15, ~17
         20        SEND_VAL                                                     ~18
         21        DO_ICALL                                                     
   18    22        INIT_FCALL                                                   'array_push'
         23        SEND_REF                                                     !1
         24        NEW                                                  $20     'Warnings'
         25        DO_FCALL                                          0          
         26        SEND_VAR                                                     $20
         27        SEND_VAL                                                     5
         28        SEND_VAL                                                     6
         29        DO_ICALL                                                     
   20    30        DECLARE_LAMBDA_FUNCTION                              ~23     [0]
   22    31        INIT_METHOD_CALL                                             ~23, 'bindTo'
         32        CHECK_FUNC_ARG                                               
         33        FETCH_DIM_FUNC_ARG                                   $24     !1, 2
         34        SEND_FUNC_ARG                                                $24
         35        DO_FCALL                                          0  $25     
         36        COALESCE                                             ~26     $25
         37        QM_ASSIGN                                            ~26     'sort'
   20    38        ASSIGN                                                       !3, ~26
   23    39        NEW                                                  $28     'ArrayIterator'
         40        INIT_ARRAY                                           ~29     !1
         41        SEND_VAL_EX                                                  ~29
         42        DO_FCALL                                          0          
         43        ASSIGN                                                       !4, $28
   24    44        INIT_DYNAMIC_CALL                                            !3
         45        SEND_UNPACK                                                  !4
         46        CHECK_UNDEF_ARGS                                             
         47        DO_FCALL                                          1          
         48      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/l8pSY
function name:  {closure:/in/l8pSY:20}
number of ops:  5
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   20     0  E >   RECV                                                 !0      
   21     1        INIT_FCALL                                                   'sort'
          2        SEND_REF                                                     !0
          3        DO_ICALL                                                     
   22     4      > RETURN                                                       null

End of Dynamic Function 0

Class Warnings:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/l8pSY
function name:  __construct
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E >   FETCH_OBJ_R                                          ~0      'static'
          1        FREE                                                         ~0
   13     2        INIT_METHOD_CALL                                             'method'
          3        DO_FCALL                                          0          
   14     4      > RETURN                                                       null

End of function __construct

Function method:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/l8pSY
function name:  method
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   15     0  E > > RETURN                                                       null

End of function method

End of class Warnings.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
170.8 ms | 2081 KiB | 16 Q