3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = <<<EOL A B C D One Two Three Four 100 2000 30000 400000 EOL; echo '<table width="400" border="1">'; echo preg_replace( '#^(\S*) (\S*) (\S*) (\S*)$#m', "\n\t<tr><td>\$1 \$2</td><td>\$3</td><td>\$4</td></tr>", $input ); echo "\n</table>";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/F5VeO
function name:  (null)
number of ops:  10
compiled vars:  !0 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'A+B+C+D%0AOne+Two+Three+Four%0A100+2000+30000+400000'
    9     1        ECHO                                                     '%3Ctable+width%3D%22400%22+border%3D%221%22%3E'
   10     2        INIT_FCALL                                               'preg_replace'
   11     3        SEND_VAL                                                 '%23%5E%28%5CS%2A%29+%28%5CS%2A%29+%28%5CS%2A%29+%28%5CS%2A%29%24%23m'
   12     4        SEND_VAL                                                 '%0A%09%3Ctr%3E%3Ctd%3E%241+%242%3C%2Ftd%3E%3Ctd%3E%243%3C%2Ftd%3E%3Ctd%3E%244%3C%2Ftd%3E%3C%2Ftr%3E'
   13     5        SEND_VAR                                                 !0
   10     6        DO_ICALL                                         $2      
   13     7        ECHO                                                     $2
   15     8        ECHO                                                     '%0A%3C%2Ftable%3E'
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.28 ms | 1008 KiB | 14 Q