3v4l.org

run code in 300+ 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:  52
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        INIT_FCALL                                               'sprintf'
          9        SEND_VAL                                                 '%25s'
         10        FETCH_DIM_R                                      ~11     !1, 1
         11        FETCH_DIM_R                                      ~12     ~11, 0
         12        INIT_ARRAY                                       ~13     ~12
         13        SEND_VAL                                                 ~13
         14        DO_ICALL                                         $14     
         15        FETCH_DIM_W                                      $9      !1, 1
         16        ASSIGN_DIM                                               $9, 3.1
         17        OP_DATA                                                  $14
    7    18        INIT_FCALL                                               'file_get_contents'
         19        FETCH_DIM_R                                      ~15     !1, 1
         20        FETCH_DIM_R                                      ~16     !1, 1
         21        FETCH_OBJ_R                                      ~17     ~16, 'prop'
         22        ADD                                              ~18     ~15, ~17
         23        SEND_VAL                                                 ~18
         24        DO_ICALL                                                 
   18    25        INIT_FCALL                                               'array_push'
         26        SEND_REF                                                 !1
         27        NEW                                              $20     'Warnings'
         28        DO_FCALL                                      0          
         29        SEND_VAR                                                 $20
         30        SEND_VAL                                                 5
         31        SEND_VAL                                                 6
         32        DO_ICALL                                                 
   20    33        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fl8pSY%3A20%240'
   22    34        INIT_METHOD_CALL                                         ~23, 'bindTo'
         35        CHECK_FUNC_ARG                                           
         36        FETCH_DIM_FUNC_ARG                               $24     !1, 2
         37        SEND_FUNC_ARG                                            $24
         38        DO_FCALL                                      0  $25     
         39        COALESCE                                         ~26     $25
         40        QM_ASSIGN                                        ~26     'sort'
   20    41        ASSIGN                                                   !3, ~26
   23    42        NEW                                              $28     'ArrayIterator'
         43        INIT_ARRAY                                       ~29     !1
         44        SEND_VAL_EX                                              ~29
         45        DO_FCALL                                      0          
         46        ASSIGN                                                   !4, $28
   24    47        INIT_DYNAMIC_CALL                                        !3
         48        SEND_UNPACK                                              !4
         49        CHECK_UNDEF_ARGS                                         
         50        DO_FCALL                                      1          
         51      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fl8pSY%3A20%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/l8pSY
function name:  {closure}
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 function %00%7Bclosure%7D%2Fin%2Fl8pSY%3A20%240

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.0.0


preferences:
166.69 ms | 1405 KiB | 21 Q