3v4l.org

run code in 500+ PHP versions simultaneously
<?php // Variables declaration $users = array( "pseudo1" => array("name"=>"Edouard", "firstname"=>"Louis", "email"=>"louis@gmail.com", "passwd"=>hash("md5", "Road66")), "pseudo2" => array("name"=>"Alice", "firstname"=>"Louis", "email"=>"louis@gmail.com", "passwd"=>hash("md5", "Road66")), "pseudo3" => array("name"=>"Bob", "firstname"=>"Louis", "email"=>"louis@gmail.com", "passwd"=>hash("md5", "Road66")), "pseudo4" => array("name"=>"Charlie", "firstname"=>"Louis", "email"=>"louis@gmail.com", "passwd"=>hash("md5", "Road66")) ); // Reset of pointer reset($users); while ($currentUser = current($users)) { var_dump($currentUser); next($users); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 47
Branch analysis from position: 47
2 jumps found. (Code = 44) Position 1 = 52, Position 2 = 41
Branch analysis from position: 52
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 41
2 jumps found. (Code = 44) Position 1 = 52, Position 2 = 41
Branch analysis from position: 52
Branch analysis from position: 41
filename:       /in/hFAG0
function name:  (null)
number of ops:  53
compiled vars:  !0 = $users, !1 = $currentUser
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   INIT_ARRAY                                           ~2      'Edouard', 'name'
          1        ADD_ARRAY_ELEMENT                                    ~2      'Louis', 'firstname'
          2        ADD_ARRAY_ELEMENT                                    ~2      'louis%40gmail.com', 'email'
          3        INIT_FCALL                                                   'hash'
          4        SEND_VAL                                                     'md5'
          5        SEND_VAL                                                     'Road66'
          6        DO_ICALL                                             $3      
          7        ADD_ARRAY_ELEMENT                                    ~2      $3, 'passwd'
          8        INIT_ARRAY                                           ~4      ~2, 'pseudo1'
    6     9        INIT_ARRAY                                           ~5      'Alice', 'name'
         10        ADD_ARRAY_ELEMENT                                    ~5      'Louis', 'firstname'
         11        ADD_ARRAY_ELEMENT                                    ~5      'louis%40gmail.com', 'email'
         12        INIT_FCALL                                                   'hash'
         13        SEND_VAL                                                     'md5'
         14        SEND_VAL                                                     'Road66'
         15        DO_ICALL                                             $6      
         16        ADD_ARRAY_ELEMENT                                    ~5      $6, 'passwd'
         17        ADD_ARRAY_ELEMENT                                    ~4      ~5, 'pseudo2'
    7    18        INIT_ARRAY                                           ~7      'Bob', 'name'
         19        ADD_ARRAY_ELEMENT                                    ~7      'Louis', 'firstname'
         20        ADD_ARRAY_ELEMENT                                    ~7      'louis%40gmail.com', 'email'
         21        INIT_FCALL                                                   'hash'
         22        SEND_VAL                                                     'md5'
         23        SEND_VAL                                                     'Road66'
         24        DO_ICALL                                             $8      
         25        ADD_ARRAY_ELEMENT                                    ~7      $8, 'passwd'
         26        ADD_ARRAY_ELEMENT                                    ~4      ~7, 'pseudo3'
    8    27        INIT_ARRAY                                           ~9      'Charlie', 'name'
         28        ADD_ARRAY_ELEMENT                                    ~9      'Louis', 'firstname'
         29        ADD_ARRAY_ELEMENT                                    ~9      'louis%40gmail.com', 'email'
         30        INIT_FCALL                                                   'hash'
         31        SEND_VAL                                                     'md5'
         32        SEND_VAL                                                     'Road66'
         33        DO_ICALL                                             $10     
         34        ADD_ARRAY_ELEMENT                                    ~9      $10, 'passwd'
         35        ADD_ARRAY_ELEMENT                                    ~4      ~9, 'pseudo4'
    4    36        ASSIGN                                                       !0, ~4
   12    37        INIT_FCALL                                                   'reset'
         38        SEND_REF                                                     !0
         39        DO_ICALL                                                     
   14    40      > JMP                                                          ->47
   16    41    >   INIT_FCALL                                                   'var_dump'
         42        SEND_VAR                                                     !1
         43        DO_ICALL                                                     
   17    44        INIT_FCALL                                                   'next'
         45        SEND_REF                                                     !0
         46        DO_ICALL                                                     
   14    47    >   INIT_FCALL                                                   'current'
         48        SEND_VAR                                                     !0
         49        DO_ICALL                                             $15     
         50        ASSIGN                                               ~16     !1, $15
         51      > JMPNZ                                                        ~16, ->41
   18    52    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.44 ms | 2045 KiB | 18 Q