3v4l.org

run code in 300+ 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:  25
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        SEPARATE                                         $3      $3
          8        FETCH_DIM_FUNC_ARG                               $4      $3, 1
          9        SEND_FUNC_ARG                                            $4
         10        SEND_VAL_EX                                              1
         11        DO_FCALL                                      0  $5      
         12        ASSIGN                                                   !1, $5
    5    13        INIT_FCALL                                               'printf'
         14        SEND_VAL                                                 'In%3A+%25d%2C+Out%3A+%25d%0A'
         15        INIT_FCALL                                               'ord'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $7      
         18        SEND_VAR                                                 $7
         19        INIT_FCALL                                               'ord'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                         $8      
         22        SEND_VAR                                                 $8
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.4 ms | 1395 KiB | 19 Q