3v4l.org

run code in 300+ PHP versions simultaneously
<?php $output=[]; $output[test('t1')] = test('t2'); function test($str){ echo $str,PHP_EOL; return rand(10, 100); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OlQnE
function name:  (null)
number of ops:  10
compiled vars:  !0 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL_BY_NAME                                       'test'
          2        SEND_VAL_EX                                              't1'
          3        DO_FCALL                                      0  $2      
          4        INIT_FCALL_BY_NAME                                       'test'
          5        SEND_VAL_EX                                              't2'
          6        DO_FCALL                                      0  $4      
          7        ASSIGN_DIM                                               !0, $2
          8        OP_DATA                                                  $4
   11     9      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OlQnE
function name:  test
number of ops:  9
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        ECHO                                                     !0
          2        ECHO                                                     '%0A'
   10     3        INIT_FCALL                                               'rand'
          4        SEND_VAL                                                 10
          5        SEND_VAL                                                 100
          6        DO_ICALL                                         $1      
          7      > RETURN                                                   $1
   11     8*     > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.88 ms | 1436 KiB | 14 Q