3v4l.org

run code in 300+ PHP versions simultaneously
<?php $installedPhpVersion = phpversion(); 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 = 10, Position 2 = 16
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 24
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 33
Branch analysis from position: 29
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 33
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 24
Branch analysis from position: 38
Branch analysis from position: 24
Branch analysis from position: 16
filename:       /in/bpJKJ
function name:  (null)
number of ops:  40
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                                               'phpversion'
          1        DO_ICALL                                         $5      
          2        ASSIGN                                                   !0, $5
    3     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'version_compare'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 '5.4.1'
          7        SEND_VAL                                                 '%3E%3D'
          8        DO_ICALL                                         $7      
          9      > JMPZ_EX                                          ~8      $7, ->16
         10    >   INIT_FCALL                                               'version_compare'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 '5.4.0'
         13        SEND_VAL                                                 '%3C'
         14        DO_ICALL                                         $9      
         15        BOOL                                             ~8      $9
         16    >   SEND_VAL                                                 ~8
         17        DO_ICALL                                                 
    4    18        ASSIGN                                                   !1, 1000
    5    19        NEW                                              $12     'SplObjectStorage'
         20        DO_FCALL                                      0          
         21        ASSIGN                                                   !2, $12
    6    22        ASSIGN                                                   !3, 0
         23      > JMP                                                      ->36
    7    24    >   NEW                                              $16     'StdClass'
         25        DO_FCALL                                      0          
         26        ASSIGN                                                   !4, $16
    9    27        ISSET_ISEMPTY_DIM_OBJ                         0          !2, !4
         28      > JMPZ                                                     ~19, ->33
   10    29    >   ROPE_INIT                                     3  ~21     'this+should+never+happen%2C+but+did+after+'
         30        ROPE_ADD                                      1  ~21     ~21, !3
         31        ROPE_END                                      2  ~20     ~21, '+iteration'
         32      > EXIT                                                     ~20
   13    33    >   ASSIGN_DIM                                               !2, !4
         34        OP_DATA                                                  1
    6    35        PRE_INC                                                  !3
         36    >   IS_SMALLER                                               !3, !1
         37      > JMPNZ                                                    ~25, ->24
   15    38    >   ECHO                                                     'ok'
   16    39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.48 ms | 1400 KiB | 19 Q