3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = 'world cup'; $arr = explode("\n",$test); $C= new stdClass(); $C->AUTO_HASHTAG = $arr; foreach($C->AUTO_HASHTAG as &$ht){ if(strpos($ht,'o')!==false) $C->AUTO_HASHTAG[] = str_replace('o','O',$ht); if(strpos($ht,'O')!==false) $C->AUTO_HASHTAG[] = str_replace('O','o',$ht); } var_export($C->AUTO_HASHTAG);

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 13, Position 2 = 43
Branch analysis from position: 13
2 jumps found. (Code = 126) Position 1 = 14, Position 2 = 43
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 28
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 42
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 42
Branch analysis from position: 28
Branch analysis from position: 43
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 43
filename:       /in/W1H2m
function name:  (null)
number of ops:  49
compiled vars:  !0 = $test, !1 = $arr, !2 = $C, !3 = $ht
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'world+cup'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%0A'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    5     6        NEW                                              $7      'stdClass'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !2, $7
    6     9        ASSIGN_OBJ                                               !2, 'AUTO_HASHTAG'
         10        OP_DATA                                                  !1
    8    11        FETCH_OBJ_W                                      $11     !2, 'AUTO_HASHTAG'
         12      > FE_RESET_RW                                      $12     $11, ->43
         13    > > FE_FETCH_RW                                              $12, !3, ->43
    9    14    >   INIT_FCALL                                               'strpos'
         15        SEND_VAR                                                 !3
         16        SEND_VAL                                                 'o'
         17        DO_ICALL                                         $13     
         18        TYPE_CHECK                                  1018          $13
         19      > JMPZ                                                     ~14, ->28
   10    20    >   INIT_FCALL                                               'str_replace'
         21        SEND_VAL                                                 'o'
         22        SEND_VAL                                                 'O'
         23        SEND_VAR                                                 !3
         24        DO_ICALL                                         $17     
         25        FETCH_OBJ_W                                      $15     !2, 'AUTO_HASHTAG'
         26        ASSIGN_DIM                                               $15
         27        OP_DATA                                                  $17
   11    28    >   INIT_FCALL                                               'strpos'
         29        SEND_VAR                                                 !3
         30        SEND_VAL                                                 'O'
         31        DO_ICALL                                         $18     
         32        TYPE_CHECK                                  1018          $18
         33      > JMPZ                                                     ~19, ->42
   12    34    >   INIT_FCALL                                               'str_replace'
         35        SEND_VAL                                                 'O'
         36        SEND_VAL                                                 'o'
         37        SEND_VAR                                                 !3
         38        DO_ICALL                                         $22     
         39        FETCH_OBJ_W                                      $20     !2, 'AUTO_HASHTAG'
         40        ASSIGN_DIM                                               $20
         41        OP_DATA                                                  $22
    8    42    > > JMP                                                      ->13
         43    >   FE_FREE                                                  $12
   15    44        INIT_FCALL                                               'var_export'
         45        FETCH_OBJ_R                                      ~23     !2, 'AUTO_HASHTAG'
         46        SEND_VAL                                                 ~23
         47        DO_ICALL                                                 
         48      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.46 ms | 1392 KiB | 21 Q