3v4l.org

run code in 300+ PHP versions simultaneously
<?php // French // Result: 1À 2 3Ä 4Æ // Expect: 11 22 33 44 echo preg_replace(['/à/iu', '/â/iu', '/ä/iu', '/æ/iu'], ['1', '2', '3', '4'], 'àÀ â äÄ æÆ') . PHP_EOL; // Result: à1 â2 ä3 æ4 // Expect: 11 22 33 44 echo preg_replace(['/À/iu', '/Â/iu', '/Ä/iu', '/Æ/iu'], ['1', '2', '3', '4'], 'àÀ â äÄ æÆ') . PHP_EOL; // Russian // Result: 1Ё 2Й // Expect: 11 22 echo preg_replace(['/ё/iu', '/й/iu'], ['1', '2'], 'ёЁ йЙ') . PHP_EOL; // Result: ё1 й2 // Expect: 11 22 echo preg_replace(['/Ё/iu', '/Й/iu'], ['1', '2'], 'ёЁ йЙ') . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2D4ZJ
function name:  (null)
number of ops:  29
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'preg_replace'
          1        SEND_VAL                                                 <array>
          2        SEND_VAL                                                 <array>
          3        SEND_VAL                                                 '%C3%A0%C3%80+%C3%A2%C3%82+%C3%A4%C3%84+%C3%A6%C3%86'
          4        DO_ICALL                                         $0      
          5        CONCAT                                           ~1      $0, '%0A'
          6        ECHO                                                     ~1
    9     7        INIT_FCALL                                               'preg_replace'
          8        SEND_VAL                                                 <array>
          9        SEND_VAL                                                 <array>
         10        SEND_VAL                                                 '%C3%A0%C3%80+%C3%A2%C3%82+%C3%A4%C3%84+%C3%A6%C3%86'
         11        DO_ICALL                                         $2      
         12        CONCAT                                           ~3      $2, '%0A'
         13        ECHO                                                     ~3
   14    14        INIT_FCALL                                               'preg_replace'
         15        SEND_VAL                                                 <array>
         16        SEND_VAL                                                 <array>
         17        SEND_VAL                                                 '%D1%91%D0%81+%D0%B9%D0%99'
         18        DO_ICALL                                         $4      
         19        CONCAT                                           ~5      $4, '%0A'
         20        ECHO                                                     ~5
   17    21        INIT_FCALL                                               'preg_replace'
         22        SEND_VAL                                                 <array>
         23        SEND_VAL                                                 <array>
         24        SEND_VAL                                                 '%D1%91%D0%81+%D0%B9%D0%99'
         25        DO_ICALL                                         $6      
         26        CONCAT                                           ~7      $6, '%0A'
         27        ECHO                                                     ~7
   18    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
207.17 ms | 1395 KiB | 15 Q