3v4l.org

run code in 300+ PHP versions simultaneously
<?php $movies = array ( "horror"=>array ( "Paranormal Activity"=> array ( "Katie Featherston", "Kathryn Newton" ), "The Ring"=> array ( "Naomi Watts", "Brian Cox" ), "Sleepy Hollow"=> array( "Johhny Depp", "Christina Ricci" ) ), "action" => array ( "The Tourist"=> array ( "Johnny Depp", "Angelina Jolie" ), "Public Enemies"=> array ( "Johnny Depp", "Christian Bale" ), "The Dark Knight Rises"=> array ( "Christian Bale", "Tom Hardy" ), "Salt"=> array ( "Angelina Jolie" ) ), "thriller"=> array ( "Inception"=> array( "Leornardio Dicaprio", "Tom Hardy" ), "Changeling" => array( "Angelina Jolie" ), "The Game"=> array( "Michael Douglas", "Sean Penn" ) ) ); $keys = array_keys($movies); foreach ($keys as $genre) { echo $genre,"\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/Fkc3Z
function name:  (null)
number of ops:  12
compiled vars:  !0 = $movies, !1 = $keys, !2 = $genre
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   48     1        INIT_FCALL                                               'array_keys'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
   49     5      > FE_RESET_R                                       $6      !1, ->10
          6    > > FE_FETCH_R                                               $6, !2, ->10
   50     7    >   ECHO                                                     !2
          8        ECHO                                                     '%0A'
   49     9      > JMP                                                      ->6
         10    >   FE_FREE                                                  $6
   51    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.61 ms | 1394 KiB | 15 Q