3v4l.org

run code in 500+ PHP versions simultaneously
<?php $strtokInIsolatedScope = function () { $str = str_repeat('abcdef', 1000); strtok($str, 'a'); }; $strtokInIsolatedScope(); var_dump(strtok('a'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eplIO
function name:  (null)
number of ops:  11
compiled vars:  !0 = $strtokInIsolatedScope
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                              ~1      [0]
          1        ASSIGN                                                       !0, ~1
    8     2        INIT_DYNAMIC_CALL                                            !0
          3        DO_FCALL                                          0          
    9     4        INIT_FCALL                                                   'var_dump'
          5        INIT_FCALL                                                   'strtok'
          6        SEND_VAL                                                     'a'
          7        DO_ICALL                                             $4      
          8        SEND_VAR                                                     $4
          9        DO_ICALL                                                     
         10      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eplIO
function name:  {closure:/in/eplIO:3}
number of ops:  10
compiled vars:  !0 = $str
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                                   'str_repeat'
          1        SEND_VAL                                                     'abcdef'
          2        SEND_VAL                                                     1000
          3        DO_ICALL                                             $1      
          4        ASSIGN                                                       !0, $1
    5     5        INIT_FCALL                                                   'strtok'
          6        SEND_VAR                                                     !0
          7        SEND_VAL                                                     'a'
          8        DO_ICALL                                                     
    6     9      > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.01 ms | 1586 KiB | 16 Q