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;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TjtE9
function name:  (null)
number of ops:  26
compiled vars:  !0 = $test, !1 = $testU, !2 = $testC, !3 = $testCU
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                                         $4      
          4        ASSIGN                                                   !0, $4
    4     5        INIT_FCALL                                               'pack'
          6        SEND_VAL                                                 'C%2A'
          7        SEND_VAL                                                 234
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !1, $6
    5    10        INIT_FCALL                                               'chr'
         11        SEND_VAL                                                 -22
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !2, $8
    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                                         ~11     !0, !1
         20        ECHO                                                     ~11
   12    21        IS_EQUAL                                         ~12     !2, !0
         22        ECHO                                                     ~12
   13    23        IS_EQUAL                                         ~13     !3, !0
         24        ECHO                                                     ~13
   14    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
194.26 ms | 1395 KiB | 17 Q