3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 20
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 20
Branch analysis from position: 30
Branch analysis from position: 20
filename:       /in/A0oBp
function name:  (null)
number of ops:  31
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                                                      ->28
   8    20    >   INIT_FCALL                                               'ord'
        21        FETCH_DIM_R                                      $12     !2, !3
        22        SEND_VAR                                                 $12
        23        DO_ICALL                                         $13     
        24        ECHO                                                     $13
        25        ECHO                                                     '%0A'
   7    26        POST_INC                                         ~14     !3
        27        FREE                                                     ~14
        28    >   IS_SMALLER                                       ~15     !3, !4
        29      > JMPNZ                                                    ~15, ->20
   9    30    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0