3v4l.org

run code in 300+ PHP versions simultaneously
<?php $chkBoxID = '1,2'; $chkBoxEmails = 'email1@test.com,email1@test2.com'; $orders = implode(",", $chkBoxID); $emails = implode(",", $chkBoxEmails); $combined = array_chunk( array_merge( $orders, $emails ), count($orders) ); var_dump($combined);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZQBlu
function name:  (null)
number of ops:  26
compiled vars:  !0 = $chkBoxID, !1 = $chkBoxEmails, !2 = $orders, !3 = $emails, !4 = $combined
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1%2C2'
    4     1        ASSIGN                                                   !1, 'email1%40test.com%2Cemail1%40test2.com'
    6     2        INIT_FCALL                                               'implode'
          3        SEND_VAL                                                 '%2C'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $7      
          6        ASSIGN                                                   !2, $7
    7     7        INIT_FCALL                                               'implode'
          8        SEND_VAL                                                 '%2C'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $9      
         11        ASSIGN                                                   !3, $9
    9    12        INIT_FCALL                                               'array_chunk'
   10    13        INIT_FCALL                                               'array_merge'
   11    14        SEND_VAR                                                 !2
   12    15        SEND_VAR                                                 !3
         16        DO_ICALL                                         $11     
         17        SEND_VAR                                                 $11
   14    18        COUNT                                            ~12     !2
         19        SEND_VAL                                                 ~12
         20        DO_ICALL                                         $13     
    9    21        ASSIGN                                                   !4, $13
   17    22        INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !4
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.5 ms | 1387 KiB | 21 Q