3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = '[h1]MAIN FEATURES[/h1] [list] [*]Doubles https://steamcommunity.com/games/227300/announcements/detail/1294067099912833659 [*]Background screen options [*]Changed light flares on the player and AI vehicles https://steamcommunity.com/games/227300/announcements/detail/1335730452506903011 [/list] [h1]MINOR CHANGES[/h1] [list][*]Auxiliary brakes system support (engine brake and retarder in one control element)[/*][*]Fixed licence plate change in states/countries where no city formats exist[/*][*]Fixed brake vs parking brake behavior[/*][*]Fixed tire noise of silent tires[/*][*]Retarder improvement (better cruise control behavior, no braking with throttle, icon when moving only)[/*][*]Steam Inventory support to allow for distributing rewards from upcoming World of Trucks events[/*][/list] If you wish to participate in the open beta, you can find this version in the public_beta branch on Steam. The way to access it is as follows: Steam client → LIBRARY → right click on Euro Truck Simulator 2 → Properties → Betas tab → public_beta → 1.28 public beta. No password required. During open betas, there is a dedicated beta site for World of Trucks, which is used to safely test all new features.'; function bb($content) { $search = array ( /*'#\[\*\](.*)\[/\*\]#iUs',*/ '#\[\*]([^[]*(?:\[(?!/?\*]|/list])[^[]*)*)(?:\[/\*])?#i', '#\[list\](.+)\[\/list\]#iUs', '#\[list=1\](.+)\[\/list\]#iUs', '#\[IMG\](.+)\[\/IMG\]#iUs' ); $replace = array ( '<li>$1</li>', '<ul>$1</ul>', '<ol>$1</ol>', '<img src="$1"/>' ); $newtext = preg_replace($search, $replace, $content); $newtext = nl2br($newtext); $newtext = preg_replace('#<br />(\s*<br />)+#', '<br />', $newtext); return $newtext; } echo bb($content);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/utO37
function name:  (null)
number of ops:  6
compiled vars:  !0 = $content
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5Bh1%5DMAIN+FEATURES%5B%2Fh1%5D+%5Blist%5D+%5B%2A%5DDoubles+https%3A%2F%2Fsteamcommunity.com%2Fgames%2F227300%2Fannouncements%2Fdetail%2F1294067099912833659+%5B%2A%5DBackground+screen+options+%5B%2A%5DChanged+light+flares+on+the+player+and+AI+vehicles+https%3A%2F%2Fsteamcommunity.com%2Fgames%2F227300%2Fannouncements%2Fdetail%2F1335730452506903011+%5B%2Flist%5D+%5Bh1%5DMINOR+CHANGES%5B%2Fh1%5D+%5Blist%5D%5B%2A%5DAuxiliary+brakes+system+support+%28engine+brake+and+retarder+in+one+control+element%29%5B%2F%2A%5D%5B%2A%5DFixed+licence+plate+change+in+states%2Fcountries+where+no+city+formats+exist%5B%2F%2A%5D%5B%2A%5DFixed+brake+vs+parking+brake+behavior%5B%2F%2A%5D%5B%2A%5DFixed+tire+noise+of+silent+tires%5B%2F%2A%5D%5B%2A%5DRetarder+improvement+%28better+cruise+control+behavior%2C+no+braking+with+throttle%2C+icon+when+moving+only%29%5B%2F%2A%5D%5B%2A%5DSteam+Inventory+support+to+allow+for+distributing+rewards+from+upcoming+World+of+Trucks+events%5B%2F%2A%5D%5B%2Flist%5D+If+you+wish+to+participate+in+the+open+beta%2C+you+can+find+this+version+in+the+public_beta+branch+on+Steam.+The+way+to+access+it+is+as+follows%3A+Steam+client+%E2%86%92+LIBRARY+%E2%86%92+right+click+on+Euro+Truck+Simulator+2+%E2%86%92+Properties+%E2%86%92+Betas+tab+%E2%86%92+public_beta+%E2%86%92+1.28+public+beta.+No+password+required.+During+open+betas%2C+there+is+a+dedicated+beta+site+for+World+of+Trucks%2C+which+is+used+to+safely+test+all+new+features.'
   26     1        INIT_FCALL                                               'bb'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $2      
          4        ECHO                                                     $2
          5      > RETURN                                                   1

Function bb:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/utO37
function name:  bb
number of ops:  21
compiled vars:  !0 = $content, !1 = $search, !2 = $replace, !3 = $newtext
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ASSIGN                                                   !1, <array>
   13     2        ASSIGN                                                   !2, <array>
   20     3        INIT_FCALL                                               'preg_replace'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !2
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !3, $6
   21     9        INIT_FCALL                                               'nl2br'
         10        SEND_VAR                                                 !3
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !3, $8
   22    13        INIT_FCALL                                               'preg_replace'
         14        SEND_VAL                                                 '%23%3Cbr+%2F%3E%28%5Cs%2A%3Cbr+%2F%3E%29%2B%23'
         15        SEND_VAL                                                 '%3Cbr+%2F%3E'
         16        SEND_VAR                                                 !3
         17        DO_ICALL                                         $10     
         18        ASSIGN                                                   !3, $10
   23    19      > RETURN                                                   !3
   24    20*     > RETURN                                                   null

End of function bb

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
134.72 ms | 1019 KiB | 16 Q