3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = pack('c*', -22); $testU = pack('C*', 234); $testC = chr(-22); $testCU = chr(234); echo $test; echo $testU; echo $testC; echo $testCU; echo $test == $testU; echo $testC == $test; echo $testCU == $test; $uTest = unpack('c*', 'ê'); var_dump($uTest);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V5Sl2
function name:  (null)
number of ops:  34
compiled vars:  !0 = $test, !1 = $testU, !2 = $testC, !3 = $testCU, !4 = $uTest
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'pack'
          1        SEND_VAL                                                 'c%2A'
          2        SEND_VAL                                                 -22
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !0, $5
    4     5        INIT_FCALL                                               'pack'
          6        SEND_VAL                                                 'C%2A'
          7        SEND_VAL                                                 234
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !1, $7
    5    10        INIT_FCALL                                               'chr'
         11        SEND_VAL                                                 -22
         12        DO_ICALL                                         $9      
         13        ASSIGN                                                   !2, $9
    6    14        ASSIGN                                                   !3, '%EA'
    7    15        ECHO                                                     !0
    8    16        ECHO                                                     !1
    9    17        ECHO                                                     !2
   10    18        ECHO                                                     !3
   11    19        IS_EQUAL                                         ~12     !0, !1
         20        ECHO                                                     ~12
   12    21        IS_EQUAL                                         ~13     !2, !0
         22        ECHO                                                     ~13
   13    23        IS_EQUAL                                         ~14     !3, !0
         24        ECHO                                                     ~14
   15    25        INIT_FCALL                                               'unpack'
         26        SEND_VAL                                                 'c%2A'
         27        SEND_VAL                                                 '%C3%AA'
         28        DO_ICALL                                         $15     
         29        ASSIGN                                                   !4, $15
   16    30        INIT_FCALL                                               'var_dump'
         31        SEND_VAR                                                 !4
         32        DO_ICALL                                                 
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.91 ms | 1401 KiB | 21 Q