3v4l.org

run code in 500+ PHP versions simultaneously
<?php $x = "\xff"; $s = gmp_export(unpack('c', $x)[1], 1); printf("In: %d, Out: %d\n", ord($x), ord($s));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gOENE
function name:  (null)
number of ops:  24
compiled vars:  !0 = $x, !1 = $s
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%FF'
    4     1        INIT_FCALL_BY_NAME                                           'gmp_export'
          2        CHECK_FUNC_ARG                                               
          3        INIT_FCALL                                                   'unpack'
          4        SEND_VAL                                                     'c'
          5        SEND_VAR                                                     !0
          6        DO_ICALL                                             $3      
          7        FETCH_DIM_FUNC_ARG                                   $4      $3, 1
          8        SEND_FUNC_ARG                                                $4
          9        SEND_VAL_EX                                                  1
         10        DO_FCALL                                          0  $5      
         11        ASSIGN                                                       !1, $5
    5    12        INIT_FCALL                                                   'printf'
         13        SEND_VAL                                                     'In%3A+%25d%2C+Out%3A+%25d%0A'
         14        INIT_FCALL                                                   'ord'
         15        SEND_VAR                                                     !0
         16        DO_ICALL                                             $7      
         17        SEND_VAR                                                     $7
         18        INIT_FCALL                                                   'ord'
         19        SEND_VAR                                                     !1
         20        DO_ICALL                                             $8      
         21        SEND_VAR                                                     $8
         22        DO_ICALL                                                     
         23      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
127.47 ms | 480 KiB | 10 Q