3v4l.org

run code in 300+ PHP versions simultaneously
<?php $args = ["name"=>"Test org","tagline"=>"whatever dude","urls"=>"http://www.whatever.com"]; $neworg = [ 'time' => current_time( 'mysql' ), 'name' => '', 'tagline' => '', 'about' => '', 'url' => '', 'organization_type' => '', ]; foreach ($args as $arg => $value) { if (array_key_exists($arg, $neworg)) { $neworg[$arg] = $value; } } print_r($neworg);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 19
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 19
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 18
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/34HlP
function name:  (null)
number of ops:  24
compiled vars:  !0 = $args, !1 = $neworg, !2 = $value, !3 = $arg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    6     1        INIT_FCALL_BY_NAME                                       'current_time'
          2        SEND_VAL_EX                                              'mysql'
          3        DO_FCALL                                      0  $5      
          4        INIT_ARRAY                                       ~6      $5, 'time'
    7     5        ADD_ARRAY_ELEMENT                                ~6      '', 'name'
    8     6        ADD_ARRAY_ELEMENT                                ~6      '', 'tagline'
    9     7        ADD_ARRAY_ELEMENT                                ~6      '', 'about'
   10     8        ADD_ARRAY_ELEMENT                                ~6      '', 'url'
   11     9        ADD_ARRAY_ELEMENT                                ~6      '', 'organization_type'
    5    10        ASSIGN                                                   !1, ~6
   13    11      > FE_RESET_R                                       $8      !0, ->19
         12    > > FE_FETCH_R                                       ~9      $8, !2, ->19
         13    >   ASSIGN                                                   !3, ~9
   14    14        ARRAY_KEY_EXISTS                                         !3, !1
         15      > JMPZ                                                     ~11, ->18
   15    16    >   ASSIGN_DIM                                               !1, !3
         17        OP_DATA                                                  !2
   13    18    > > JMP                                                      ->12
         19    >   FE_FREE                                                  $8
   18    20        INIT_FCALL                                               'print_r'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.08 ms | 1395 KiB | 15 Q