3v4l.org

run code in 300+ PHP versions simultaneously
<?php $search = 'dev'; $name = 'friendlydev'; $add = strpos($name, $search); header('Content-Type: text/plain'); print $search . PHP_EOL; print $name . PHP_EOL; print var_export($add) . PHP_EOL; print PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BCQ7e
function name:  (null)
number of ops:  21
compiled vars:  !0 = $search, !1 = $name, !2 = $add
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'dev'
    4     1        ASSIGN                                                   !1, 'friendlydev'
    5     2        INIT_FCALL                                               'strpos'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
    7     7        INIT_FCALL                                               'header'
          8        SEND_VAL                                                 'Content-Type%3A+text%2Fplain'
          9        DO_ICALL                                                 
    8    10        CONCAT                                           ~8      !0, '%0A'
         11        ECHO                                                     ~8
    9    12        CONCAT                                           ~9      !1, '%0A'
         13        ECHO                                                     ~9
   10    14        INIT_FCALL                                               'var_export'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                         $10     
         17        CONCAT                                           ~11     $10, '%0A'
         18        ECHO                                                     ~11
   11    19        ECHO                                                     '%0A'
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.38 ms | 1386 KiB | 19 Q