3v4l.org

run code in 300+ PHP versions simultaneously
<?php $q = msg_get_queue(123456); msg_send($q, 1, "a\x00b\xF0"); msg_receive($q, 1, $msgtype, 100, $msg); for ($i = 0, $len = strlen($msg); $i < $len; $i++) { echo ord($msg[$i]), "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 20
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 20
Branch analysis from position: 29
Branch analysis from position: 20
filename:       /in/A0oBp
function name:  (null)
number of ops:  30
compiled vars:  !0 = $q, !1 = $msgtype, !2 = $msg, !3 = $i, !4 = $len
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'msg_get_queue'
          1        SEND_VAL_EX                                              123456
          2        DO_FCALL                                      0  $5      
          3        ASSIGN                                                   !0, $5
    4     4        INIT_FCALL_BY_NAME                                       'msg_send'
          5        SEND_VAR_EX                                              !0
          6        SEND_VAL_EX                                              1
          7        SEND_VAL_EX                                              'a%00b%F0'
          8        DO_FCALL                                      0          
    5     9        INIT_FCALL_BY_NAME                                       'msg_receive'
         10        SEND_VAR_EX                                              !0
         11        SEND_VAL_EX                                              1
         12        SEND_VAR_EX                                              !1
         13        SEND_VAL_EX                                              100
         14        SEND_VAR_EX                                              !2
         15        DO_FCALL                                      0          
    7    16        ASSIGN                                                   !3, 0
         17        STRLEN                                           ~10     !2
         18        ASSIGN                                                   !4, ~10
         19      > JMP                                                      ->27
    8    20    >   INIT_FCALL                                               'ord'
         21        FETCH_DIM_R                                      ~12     !2, !3
         22        SEND_VAL                                                 ~12
         23        DO_ICALL                                         $13     
         24        ECHO                                                     $13
         25        ECHO                                                     '%0A'
    7    26        PRE_INC                                                  !3
         27    >   IS_SMALLER                                               !3, !4
         28      > JMPNZ                                                    ~15, ->20
    9    29    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.99 ms | 1396 KiB | 15 Q