3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = (binary)"AAA"; $b = array("AAA" => "BBB"); $c = strtr($a, $b); var_dump($a); var_dump($b); var_dump($c);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SXlG3
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   CAST                                              6  ~3      'AAA'
          1        ASSIGN                                                       !0, ~3
    4     2        ASSIGN                                                       !1, <array>
    5     3        FRAMELESS_ICALL_2                strtr               ~6      !0, !1
          4        ASSIGN                                                       !2, ~6
    6     5        INIT_FCALL                                                   'var_dump'
          6        SEND_VAR                                                     !0
          7        DO_ICALL                                                     
    7     8        INIT_FCALL                                                   'var_dump'
          9        SEND_VAR                                                     !1
         10        DO_ICALL                                                     
    8    11        INIT_FCALL                                                   'var_dump'
         12        SEND_VAR                                                     !2
         13        DO_ICALL                                                     
         14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.63 ms | 2707 KiB | 16 Q