3v4l.org

run code in 300+ PHP versions simultaneously
<?php function expects(array $expected, array $received) { // var_dump($received); var_dump($expected === $received); } $string = '先ÊeĖâ‚Ŧ𐍈💩👩‍ 👩‍❤ī¸â€đŸ‘Š'; $expectedArray = ['先', 'Ê', 'e', 'Ė', 'â‚Ŧ', '𐍈', '💩', '👩', '‍', ' ', '👩', '‍', '❤', 'ī¸', '‍', '👩']; expects($expectedArray, mb_str_split( $string));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M85Fi
function name:  (null)
number of ops:  10
compiled vars:  !0 = $string, !1 = $expectedArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, '%E5%85%88%C3%A9e%CC%81%E2%82%AC%F0%90%8D%88%F0%9F%92%A9%F0%9F%91%A9%E2%80%8D+%F0%9F%91%A9%E2%80%8D%E2%9D%A4%EF%B8%8F%E2%80%8D%F0%9F%91%A9'
    9     1        ASSIGN                                                   !1, <array>
   11     2        INIT_FCALL                                               'expects'
          3        SEND_VAR                                                 !1
          4        INIT_FCALL                                               'mb_str_split'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Function expects:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M85Fi
function name:  expects
number of ops:  7
compiled vars:  !0 = $expected, !1 = $received
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        INIT_FCALL                                               'var_dump'
          3        IS_IDENTICAL                                     ~2      !0, !1
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
    6     6      > RETURN                                                   null

End of function expects

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.57 ms | 1397 KiB | 18 Q