3v4l.org

run code in 300+ PHP versions simultaneously
<?php $coll = new Collator('root'); var_dump(substr_count($coll->getSortKey('Hello'), "\0"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ofp14
function name:  (null)
number of ops:  15
compiled vars:  !0 = $coll
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'Collator'
          1        SEND_VAL_EX                                              'root'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    3     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'substr_count'
          6        INIT_METHOD_CALL                                         !0, 'getSortKey'
          7        SEND_VAL_EX                                              'Hello'
          8        DO_FCALL                                      0  $4      
          9        SEND_VAR                                                 $4
         10        SEND_VAL                                                 '%00'
         11        DO_ICALL                                         $5      
         12        SEND_VAR                                                 $5
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.73 ms | 1394 KiB | 17 Q