3v4l.org

run code in 300+ PHP versions simultaneously
var_dump((version_compare($installedPhpVersion, '5.4.1', '>=') && version_compare($installedPhpVersion, '5.4.0', '<'))); <?php $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
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 7
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 7
Branch analysis from position: 21
Branch analysis from position: 7
filename:       /in/57OUF
function name:  (null)
number of ops:  23
compiled vars:  !0 = $limit, !1 = $objects, !2 = $i, !3 = $object
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     'var_dump%28%28version_compare%28%24installedPhpVersion%2C+%275.4.1%27%2C+%27%3E%3D%27%29+%26%26+version_compare%28%24installedPhpVersion%2C+%275.4.0%27%2C+%27%3C%27%29%29%29%3B%0A%0A'
    4     1        ASSIGN                                                   !0, 1000
    5     2        NEW                                              $5      'SplObjectStorage'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $5
    6     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->19
    7     7    >   NEW                                              $9      'StdClass'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !3, $9
    9    10        ISSET_ISEMPTY_DIM_OBJ                         0          !1, !3
         11      > JMPZ                                                     ~12, ->16
   10    12    >   ROPE_INIT                                     3  ~14     'this+should+never+happen%2C+but+did+after+'
         13        ROPE_ADD                                      1  ~14     ~14, !2
         14        ROPE_END                                      2  ~13     ~14, '+iteration'
         15      > EXIT                                                     ~13
   13    16    >   ASSIGN_DIM                                               !1, !3
         17        OP_DATA                                                  1
    6    18        PRE_INC                                                  !2
         19    >   IS_SMALLER                                               !2, !0
         20      > JMPNZ                                                    ~18, ->7
   15    21    >   ECHO                                                     'ok'
   16    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.73 ms | 1398 KiB | 13 Q