3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'blahblah1323r8b|7.45'; var_export( sscanf($str, '%[^|]|%f') ); echo "\n\nor\n\n"; sscanf($str, '%[^|]|%f', $left, $right); var_dump($left, $right); echo "\n\nor\n\n"; [$key, $result[$key]] = sscanf($str, '%[^|]|%f'); var_export($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t32Bu
function name:  (null)
number of ops:  34
compiled vars:  !0 = $str, !1 = $left, !2 = $right, !3 = $key, !4 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'blahblah1323r8b%7C7.45'
    5     1        INIT_FCALL                                               'var_export'
    6     2        INIT_FCALL                                               'sscanf'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 '%25%5B%5E%7C%5D%7C%25f'
          5        DO_ICALL                                         $6      
          6        SEND_VAR                                                 $6
    5     7        DO_ICALL                                                 
    9     8        ECHO                                                     '%0A%0Aor%0A%0A'
   11     9        INIT_FCALL                                               'sscanf'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 '%25%5B%5E%7C%5D%7C%25f'
         12        SEND_REF                                                 !1
         13        SEND_REF                                                 !2
         14        DO_ICALL                                                 
   12    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                                 
   14    19        ECHO                                                     '%0A%0Aor%0A%0A'
   16    20        INIT_FCALL                                               'sscanf'
         21        SEND_VAR                                                 !0
         22        SEND_VAL                                                 '%25%5B%5E%7C%5D%7C%25f'
         23        DO_ICALL                                         $10     
         24        FETCH_LIST_R                                     $11     $10, 0
         25        ASSIGN                                                   !3, $11
         26        FETCH_LIST_R                                     $13     $10, 1
         27        ASSIGN_DIM                                               !4, !3
         28        OP_DATA                                                  $13
         29        FREE                                                     $10
   17    30        INIT_FCALL                                               'var_export'
         31        SEND_VAR                                                 !4
         32        DO_ICALL                                                 
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.61 ms | 1005 KiB | 16 Q