3v4l.org

run code in 300+ PHP versions simultaneously
<?php $entity_type = 'node'; var_dump(strtok($entity_type, '.')); $entity_type = 'views.view'; print_r(strtok($entity_type, '.'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1TXNc
function name:  (null)
number of ops:  17
compiled vars:  !0 = $entity_type
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'node'
    4     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'strtok'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 '.'
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
    5     8        ASSIGN                                                   !0, 'views.view'
    6     9        INIT_FCALL                                               'print_r'
         10        INIT_FCALL                                               'strtok'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 '.'
         13        DO_ICALL                                         $5      
         14        SEND_VAR                                                 $5
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.97 ms | 1385 KiB | 19 Q