3v4l.org

run code in 300+ PHP versions simultaneously
<?php $message = '{"id":1639}'; $producer = new RdKafka\Producer(); $topic = $producer->newTopic('myTopic'); $topic->produce(RD_KAFKA_PARTITION_UA, 0, $message);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XUMYj
function name:  (null)
number of ops:  15
compiled vars:  !0 = $message, !1 = $producer, !2 = $topic
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%22id%22%3A1639%7D'
    5     1        NEW                                              $4      'RdKafka%5CProducer'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $4
    6     4        INIT_METHOD_CALL                                         !1, 'newTopic'
          5        SEND_VAL_EX                                              'myTopic'
          6        DO_FCALL                                      0  $7      
          7        ASSIGN                                                   !2, $7
    7     8        INIT_METHOD_CALL                                         !2, 'produce'
          9        FETCH_CONSTANT                                   ~9      'RD_KAFKA_PARTITION_UA'
         10        SEND_VAL_EX                                              ~9
         11        SEND_VAL_EX                                              0
         12        SEND_VAR_EX                                              !0
         13        DO_FCALL                                      0          
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.66 ms | 1393 KiB | 13 Q