3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lxc_info = "Name: wightcrm State: RUNNING PID: 18416 IP: 10.0.3.48 CPU use: 2464710238833 BlkIO use: 4607229952 Memory use: 389132288 KMem use: 0 Link: veth6KBEER TX bytes: 920260588 RX bytes: 166798199 Total bytes: 1087058787"; $info = explode("\n", $lxc_info); $c = array(); foreach ($info as $item) { $item = array_map('trim', explode(':', $item)); print_r($item); $item = array($item[0] => $item[1]); $c[] = $item; } print_r($c);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 28
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 28
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
filename:       /in/htOk2
function name:  (null)
number of ops:  33
compiled vars:  !0 = $lxc_info, !1 = $info, !2 = $c, !3 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Name%3A+++++++++++wightcrm%0AState%3A++++++++++RUNNING%0APID%3A++++++++++++18416%0AIP%3A+++++++++++++10.0.3.48%0ACPU+use%3A++++++++2464710238833%0ABlkIO+use%3A++++++4607229952%0AMemory+use%3A+++++389132288%0AKMem+use%3A+++++++0%0ALink%3A+++++++++++veth6KBEER%0A+TX+bytes%3A++++++920260588%0A+RX+bytes%3A++++++166798199%0A+Total+bytes%3A+++1087058787'
   16     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%0A'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
   17     6        ASSIGN                                                   !2, <array>
   18     7      > FE_RESET_R                                       $8      !1, ->28
          8    > > FE_FETCH_R                                               $8, !3, ->28
   19     9    >   INIT_FCALL                                               'array_map'
         10        SEND_VAL                                                 'trim'
         11        INIT_FCALL                                               'explode'
         12        SEND_VAL                                                 '%3A'
         13        SEND_VAR                                                 !3
         14        DO_ICALL                                         $9      
         15        SEND_VAR                                                 $9
         16        DO_ICALL                                         $10     
         17        ASSIGN                                                   !3, $10
   20    18        INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !3
         20        DO_ICALL                                                 
   21    21        FETCH_DIM_R                                      ~13     !3, 0
         22        FETCH_DIM_R                                      ~14     !3, 1
         23        INIT_ARRAY                                       ~15     ~14, ~13
         24        ASSIGN                                                   !3, ~15
   22    25        ASSIGN_DIM                                               !2
         26        OP_DATA                                                  !3
   18    27      > JMP                                                      ->8
         28    >   FE_FREE                                                  $8
   25    29        INIT_FCALL                                               'print_r'
         30        SEND_VAR                                                 !2
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.64 ms | 1396 KiB | 19 Q