3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ( sample( 100, 'OxTest' ) + sample( 101, 'OxTest' ) ); print_r( $array ); function sample( $id, $value ) { return array( 'input_' . $id => array( 'input_value' => $value ) ); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TZejR
function name:  (null)
number of ops:  14
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'sample'
          1        SEND_VAL_EX                                              100
          2        SEND_VAL_EX                                              'OxTest'
          3        DO_FCALL                                      0  $1      
          4        INIT_FCALL_BY_NAME                                       'sample'
          5        SEND_VAL_EX                                              101
          6        SEND_VAL_EX                                              'OxTest'
          7        DO_FCALL                                      0  $2      
          8        ADD                                              ~3      $1, $2
          9        ASSIGN                                                   !0, ~3
    5    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
   10    13      > RETURN                                                   1

Function sample:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TZejR
function name:  sample
number of ops:  7
compiled vars:  !0 = $id, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    9     2        CONCAT                                           ~2      'input_', !0
          3        INIT_ARRAY                                       ~3      !1, 'input_value'
          4        INIT_ARRAY                                       ~4      ~3, ~2
          5      > RETURN                                                   ~4
   10     6*     > RETURN                                                   null

End of function sample

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.43 ms | 1395 KiB | 15 Q