3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); $resource = fopen('php://stdin', 'r'); $values = [ 'int' => 5, 'string' => '5', 'float' => 5.0, 'bool' => true, 'array' => [5], 'object' => new stdClass(), 'null' => null, 'resource' => $resource, ]; foreach ($values as $v1) { foreach ($values as $v2) { var_dump($v1 <=> $v2); } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 17, Position 2 = 27
Branch analysis from position: 17
2 jumps found. (Code = 78) Position 1 = 18, Position 2 = 27
Branch analysis from position: 18
2 jumps found. (Code = 77) Position 1 = 19, Position 2 = 25
Branch analysis from position: 19
2 jumps found. (Code = 78) Position 1 = 20, Position 2 = 25
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 25
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/FVeq7
function name:  (null)
number of ops:  29
compiled vars:  !0 = $resource, !1 = $values, !2 = $v1, !3 = $v2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'fopen'
          1        SEND_VAL                                                 'php%3A%2F%2Fstdin'
          2        SEND_VAL                                                 'r'
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !0, $4
    5     5        INIT_ARRAY                                       ~6      5, 'int'
    6     6        ADD_ARRAY_ELEMENT                                ~6      '5', 'string'
    7     7        ADD_ARRAY_ELEMENT                                ~6      5, 'float'
    5     8        ADD_ARRAY_ELEMENT                                ~6      <true>, 'bool'
          9        ADD_ARRAY_ELEMENT                                ~6      <array>, 'array'
   10    10        NEW                                              $7      'stdClass'
         11        DO_FCALL                                      0          
         12        ADD_ARRAY_ELEMENT                                ~6      $7, 'object'
    5    13        ADD_ARRAY_ELEMENT                                ~6      null, 'null'
   12    14        ADD_ARRAY_ELEMENT                                ~6      !0, 'resource'
    4    15        ASSIGN                                                   !1, ~6
   15    16      > FE_RESET_R                                       $10     !1, ->27
         17    > > FE_FETCH_R                                               $10, !2, ->27
   16    18    > > FE_RESET_R                                       $11     !1, ->25
         19    > > FE_FETCH_R                                               $11, !3, ->25
   17    20    >   INIT_FCALL                                               'var_dump'
         21        SPACESHIP                                        ~12     !2, !3
         22        SEND_VAL                                                 ~12
         23        DO_ICALL                                                 
   16    24      > JMP                                                      ->19
         25    >   FE_FREE                                                  $11
   15    26      > JMP                                                      ->17
         27    >   FE_FREE                                                  $10
   19    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.82 ms | 1000 KiB | 15 Q