3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = 'hello,world'; echo substr($data, strpos($data, ',') + 1); echo PHP_EOL; echo strstr($data, ',');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vXOE4
function name:  (null)
number of ops:  18
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'hello%2Cworld'
    5     1        INIT_FCALL                                               'substr'
          2        SEND_VAR                                                 !0
          3        INIT_FCALL                                               'strpos'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 '%2C'
          6        DO_ICALL                                         $2      
          7        ADD                                              ~3      $2, 1
          8        SEND_VAL                                                 ~3
          9        DO_ICALL                                         $4      
         10        ECHO                                                     $4
    6    11        ECHO                                                     '%0A'
    7    12        INIT_FCALL                                               'strstr'
         13        SEND_VAR                                                 !0
         14        SEND_VAL                                                 '%2C'
         15        DO_ICALL                                         $5      
         16        ECHO                                                     $5
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.53 ms | 1394 KiB | 19 Q