3v4l.org

run code in 300+ PHP versions simultaneously
<?php $search = 'dev'; $name = 'friendlydev'; $add = (bool)(strpos($name, $search) !== false); header('Content-Type: text/plain'); print $search . "\n"; print $name . "\n"; print var_export($add) . "\n"; print PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rOOYq
function name:  (null)
number of ops:  23
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        TYPE_CHECK                                  1018  ~6      $5
          7        BOOL                                             ~7      ~6
          8        ASSIGN                                                   !2, ~7
    7     9        INIT_FCALL                                               'header'
         10        SEND_VAL                                                 'Content-Type%3A+text%2Fplain'
         11        DO_ICALL                                                 
    8    12        CONCAT                                           ~10     !0, '%0A'
         13        ECHO                                                     ~10
    9    14        CONCAT                                           ~11     !1, '%0A'
         15        ECHO                                                     ~11
   10    16        INIT_FCALL                                               'var_export'
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                         $12     
         19        CONCAT                                           ~13     $12, '%0A'
         20        ECHO                                                     ~13
   11    21        ECHO                                                     '%0A'
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.79 ms | 1399 KiB | 19 Q