3v4l.org

run code in 300+ PHP versions simultaneously
<?php atest(); function atest(){ $test = array( "StartDate" => "08/01/2013", "StartTime" =>"08:00:00", "DepartmentID" => "75275", "# Contacts Offered" => "3", "# Contacts Handled" => "4", "Average Talk Time" => "491.250000", "Average Delay" => "5.666667", "Percent SLA" => "1.333333"); $formatted = sprintf("%s %s TCSDATA %d %d %d %01.2f 0 %01.2f %01.2f \r\n", $test["StartDate"], $test["StartTime"], $test['DepartmentID'], $test['# Contacts Offered'], $test['# Contacts Handled'], $test['Average Talk Time'], $test['Average Delay'], $test['Percent SLA'] ); echo('<pre>'); echo( var_dump($test) ); echo('</pre>'); echo $formatted; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5XgfP
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'atest'
          1        DO_FCALL                                      0          
   31     2      > RETURN                                                   1

Function atest:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5XgfP
function name:  atest
number of ops:  29
compiled vars:  !0 = $test, !1 = $formatted
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
   14     1        INIT_FCALL                                               'sprintf'
          2        SEND_VAL                                                 '%25s+++%25s+TCSDATA+%25d+%25d+%25d+%2501.2f+0+%2501.2f+%2501.2f+%0D%0A'
   15     3        FETCH_DIM_R                                      ~3      !0, 'StartDate'
          4        SEND_VAL                                                 ~3
   16     5        FETCH_DIM_R                                      ~4      !0, 'StartTime'
          6        SEND_VAL                                                 ~4
   17     7        FETCH_DIM_R                                      ~5      !0, 'DepartmentID'
          8        SEND_VAL                                                 ~5
   18     9        FETCH_DIM_R                                      ~6      !0, '%23+Contacts+Offered'
         10        SEND_VAL                                                 ~6
   19    11        FETCH_DIM_R                                      ~7      !0, '%23+Contacts+Handled'
         12        SEND_VAL                                                 ~7
   20    13        FETCH_DIM_R                                      ~8      !0, 'Average+Talk+Time'
         14        SEND_VAL                                                 ~8
   21    15        FETCH_DIM_R                                      ~9      !0, 'Average+Delay'
         16        SEND_VAL                                                 ~9
   22    17        FETCH_DIM_R                                      ~10     !0, 'Percent+SLA'
         18        SEND_VAL                                                 ~10
         19        DO_ICALL                                         $11     
   14    20        ASSIGN                                                   !1, $11
   25    21        ECHO                                                     '%3Cpre%3E'
   26    22        INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                         $13     
         25        ECHO                                                     $13
   27    26        ECHO                                                     '%3C%2Fpre%3E'
   29    27        ECHO                                                     !1
   30    28      > RETURN                                                   null

End of function atest

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.1 ms | 1396 KiB | 17 Q