3v4l.org

run code in 500+ PHP versions simultaneously
<?php setlocale(LC_CTYPE, "en_US.UTF-8"); $test = "❤"; $line = "test1❤test2❤test3"; $header = str_getcsv($line, $test); var_dump($header);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MiD3B
function name:  (null)
number of ops:  15
compiled vars:  !0 = $test, !1 = $line, !2 = $header
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'setlocale'
          1        SEND_VAL                                                     0
          2        SEND_VAL                                                     'en_US.UTF-8'
          3        DO_ICALL                                                     
    4     4        ASSIGN                                                       !0, '%E2%9D%A4'
    6     5        ASSIGN                                                       !1, 'test1%E2%9D%A4test2%E2%9D%A4test3'
    7     6        INIT_FCALL                                                   'str_getcsv'
          7        SEND_VAR                                                     !1
          8        SEND_VAR                                                     !0
          9        DO_ICALL                                             $6      
         10        ASSIGN                                                       !2, $6
    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:
183.91 ms | 1442 KiB | 11 Q