3v4l.org

run code in 500+ PHP versions simultaneously
<?php function parseDbString(string $value = 'Looking for a good {{ $pippo }}'){ $lookup = ['{{ $pippo }}' => 'Pizza']; // this can be extended all you like! return strtr($value, $lookup); } echo parseDbString();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rYTNT
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                                   'parsedbstring'
          1        DO_FCALL                                          0  $0      
          2        ECHO                                                         $0
          3      > RETURN                                                       1

Function parsedbstring:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rYTNT
function name:  parseDbString
number of ops:  5
compiled vars:  !0 = $value, !1 = $lookup
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   RECV_INIT                                            !0      'Looking+for+a+good+%7B%7B+%24pippo+%7D%7D'
    3     1        ASSIGN                                                       !1, <array>
    4     2        FRAMELESS_ICALL_2                strtr               ~3      !0, !1
          3      > RETURN                                                       ~3
    5     4*     > RETURN                                                       null

End of function parsedbstring

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.33 ms | 2218 KiB | 14 Q