3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump((version_compare($installedPhpVersion, '5.4.1', '>=') && version_compare($installedPhpVersion, '5.4.0', '<'))); $limit = 1000; $objects = new SplObjectStorage; for($i = 0; $i < $limit; $i++){ $object = new StdClass; if(isset($objects[$object])){ die("this should never happen, but did after $i iteration"); } $objects[$object] = 1; } echo 'ok'; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 7, Position 2 = 13
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
2 jumps found. (Code = 44) Position 1 = 35, Position 2 = 21
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 30
Branch analysis from position: 26
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 35, Position 2 = 21
Branch analysis from position: 35
Branch analysis from position: 21
Branch analysis from position: 13
filename:       /in/ggvjM
function name:  (null)
number of ops:  37
compiled vars:  !0 = $installedPhpVersion, !1 = $limit, !2 = $objects, !3 = $i, !4 = $object
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'version_compare'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '5.4.1'
          4        SEND_VAL                                                 '%3E%3D'
          5        DO_ICALL                                         $5      
          6      > JMPZ_EX                                          ~6      $5, ->13
          7    >   INIT_FCALL                                               'version_compare'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 '5.4.0'
         10        SEND_VAL                                                 '%3C'
         11        DO_ICALL                                         $7      
         12        BOOL                                             ~6      $7
         13    >   SEND_VAL                                                 ~6
         14        DO_ICALL                                                 
    3    15        ASSIGN                                                   !1, 1000
    4    16        NEW                                              $10     'SplObjectStorage'
         17        DO_FCALL                                      0          
         18        ASSIGN                                                   !2, $10
    5    19        ASSIGN                                                   !3, 0
         20      > JMP                                                      ->33
    6    21    >   NEW                                              $14     'StdClass'
         22        DO_FCALL                                      0          
         23        ASSIGN                                                   !4, $14
    8    24        ISSET_ISEMPTY_DIM_OBJ                         0          !2, !4
         25      > JMPZ                                                     ~17, ->30
    9    26    >   ROPE_INIT                                     3  ~19     'this+should+never+happen%2C+but+did+after+'
         27        ROPE_ADD                                      1  ~19     ~19, !3
         28        ROPE_END                                      2  ~18     ~19, '+iteration'
         29      > EXIT                                                     ~18
   12    30    >   ASSIGN_DIM                                               !2, !4
         31        OP_DATA                                                  1
    5    32        PRE_INC                                                  !3
         33    >   IS_SMALLER                                               !3, !1
         34      > JMPNZ                                                    ~23, ->21
   14    35    >   ECHO                                                     'ok'
   15    36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.87 ms | 1400 KiB | 17 Q