3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_export([ // string, then mask 'a:ba' => strcspn('a', 'ba'), // 0 'ba:a' => strcspn('ba', 'a'), // 1 'a:a' => strcspn('a', 'a'), // 0 'ba:ba' => strcspn('ba', 'ba'), // 0 ]); echo "\n---\n"; $params = [ ['one' => 'a', 'two' => 'ba', 'three' => 'a', 'four' => 'ba'], // strings ['three' => 'a', 'one' => 'ba', 'four' => 'ba', 'two' => 'a'], // masks 'strcspn' ]; var_export([ 'udiff' => array_udiff_assoc(...$params), 'uintersect' => array_uintersect_assoc(...$params), ]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2mkML
function name:  (null)
number of ops:  39
compiled vars:  !0 = $params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_export'
    5     1        INIT_FCALL                                               'strcspn'
          2        SEND_VAL                                                 'a'
          3        SEND_VAL                                                 'ba'
          4        DO_ICALL                                         $1      
          5        INIT_ARRAY                                       ~2      $1, 'a%3Aba'
    6     6        INIT_FCALL                                               'strcspn'
          7        SEND_VAL                                                 'ba'
          8        SEND_VAL                                                 'a'
          9        DO_ICALL                                         $3      
         10        ADD_ARRAY_ELEMENT                                ~2      $3, 'ba%3Aa'
    7    11        INIT_FCALL                                               'strcspn'
         12        SEND_VAL                                                 'a'
         13        SEND_VAL                                                 'a'
         14        DO_ICALL                                         $4      
         15        ADD_ARRAY_ELEMENT                                ~2      $4, 'a%3Aa'
    8    16        INIT_FCALL                                               'strcspn'
         17        SEND_VAL                                                 'ba'
         18        SEND_VAL                                                 'ba'
         19        DO_ICALL                                         $5      
         20        ADD_ARRAY_ELEMENT                                ~2      $5, 'ba%3Aba'
         21        SEND_VAL                                                 ~2
    3    22        DO_ICALL                                                 
   11    23        ECHO                                                     '%0A---%0A'
   13    24        ASSIGN                                                   !0, <array>
   19    25        INIT_FCALL                                               'var_export'
   20    26        INIT_FCALL                                               'array_udiff_assoc'
         27        SEND_UNPACK                                              !0
         28        CHECK_UNDEF_ARGS                                         
         29        DO_ICALL                                         $8      
         30        INIT_ARRAY                                       ~9      $8, 'udiff'
   21    31        INIT_FCALL                                               'array_uintersect_assoc'
         32        SEND_UNPACK                                              !0
         33        CHECK_UNDEF_ARGS                                         
         34        DO_ICALL                                         $10     
         35        ADD_ARRAY_ELEMENT                                ~9      $10, 'uintersect'
         36        SEND_VAL                                                 ~9
   19    37        DO_ICALL                                                 
   22    38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.19 ms | 1002 KiB | 17 Q