3v4l.org

run code in 300+ PHP versions simultaneously
<?php $records = array('id'=>'2','name'=>'Andi'); foreach($records as $column => $value) { $key = ':' . $column; $placeholders[$key] = $value; } $columns = array_keys($records); $values = array_values($records);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 9
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 9
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/rD5qX
function name:  (null)
number of ops:  19
compiled vars:  !0 = $records, !1 = $value, !2 = $column, !3 = $key, !4 = $placeholders, !5 = $columns, !6 = $values
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1      > FE_RESET_R                                       $8      !0, ->9
          2    > > FE_FETCH_R                                       ~9      $8, !1, ->9
          3    >   ASSIGN                                                   !2, ~9
    5     4        CONCAT                                           ~11     '%3A', !2
          5        ASSIGN                                                   !3, ~11
    6     6        ASSIGN_DIM                                               !4, !3
          7        OP_DATA                                                  !1
    4     8      > JMP                                                      ->2
          9    >   FE_FREE                                                  $8
    8    10        INIT_FCALL                                               'array_keys'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $14     
         13        ASSIGN                                                   !5, $14
    9    14        INIT_FCALL                                               'array_values'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $16     
         17        ASSIGN                                                   !6, $16
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.48 ms | 1395 KiB | 17 Q