3v4l.org

run code in 300+ PHP versions simultaneously
<?php $updates = [ "service" => "k", "price" => "85.0", "id" => "442" ]; $test=extract($updates); var_dump($service,$price,$id); //take the keys above and turn them into variables like the ones shown below $stmt->bind_param(str_repeat("s", count(updates)),$service,$price,$id);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VkWGB
function name:  (null)
number of ops:  23
compiled vars:  !0 = $updates, !1 = $test, !2 = $service, !3 = $price, !4 = $id, !5 = $stmt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'extract'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                         $7      
          4        ASSIGN                                                   !1, $7
    9     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !2
          7        SEND_VAR                                                 !3
          8        SEND_VAR                                                 !4
          9        DO_ICALL                                                 
   12    10        INIT_METHOD_CALL                                         !5, 'bind_param'
         11        INIT_FCALL                                               'str_repeat'
         12        SEND_VAL                                                 's'
         13        FETCH_CONSTANT                                   ~10     'updates'
         14        COUNT                                            ~11     ~10
         15        SEND_VAL                                                 ~11
         16        DO_ICALL                                         $12     
         17        SEND_VAR_NO_REF_EX                                       $12
         18        SEND_VAR_EX                                              !2
         19        SEND_VAR_EX                                              !3
         20        SEND_VAR_EX                                              !4
         21        DO_FCALL                                      0          
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
206.41 ms | 1395 KiB | 19 Q