3v4l.org

run code in 300+ PHP versions simultaneously
<?php $entry = <<<ENTRY Bob 1 https://www.example.com#Anchor Joe 2 joe@exAmple.com Sam 3 http://examPle.org Ian 4 www.Example.net Öna 5 eXample.info Eve 6 Heart_in_a_Blender ENTRY; $entry = preg_replace_callback( '/\S+/', function($m) { if (!filter_var($m[0], FILTER_VALIDATE_URL)) { $m[0] = mb_strtolower($m[0], "UTF-8"); } return $m[0]; }, $entry ); echo $entry;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3UrNf
function name:  (null)
number of ops:  10
compiled vars:  !0 = $entry
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Bob+1+https%3A%2F%2Fwww.example.com%23Anchor%0AJoe+2+joe%40exAmple.com%0ASam+3+http%3A%2F%2FexamPle.org%0AIan+4+www.Example.net%0A%C3%96na+5+eXample.info%0AEve+6+Heart_in_a_Blender'
   12     1        INIT_FCALL                                               'preg_replace_callback'
   13     2        SEND_VAL                                                 '%2F%5CS%2B%2F'
   14     3        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
   19     4        SEND_VAL                                                 ~2
   20     5        SEND_VAR                                                 !0
   12     6        DO_ICALL                                         $3      
          7        ASSIGN                                                   !0, $3
   22     8        ECHO                                                     !0
   23     9      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/3UrNf
function name:  {closure}
number of ops:  18
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
   15     1        INIT_FCALL                                               'filter_var'
          2        FETCH_DIM_R                                      ~1      !0, 0
          3        SEND_VAL                                                 ~1
          4        SEND_VAL                                                 273
          5        DO_ICALL                                         $2      
          6        BOOL_NOT                                         ~3      $2
          7      > JMPZ                                                     ~3, ->15
   16     8    >   INIT_FCALL                                               'mb_strtolower'
          9        FETCH_DIM_R                                      ~5      !0, 0
         10        SEND_VAL                                                 ~5
         11        SEND_VAL                                                 'UTF-8'
         12        DO_ICALL                                         $6      
         13        ASSIGN_DIM                                               !0, 0
         14        OP_DATA                                                  $6
   18    15    >   FETCH_DIM_R                                      ~7      !0, 0
         16      > RETURN                                                   ~7
   19    17*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.14 ms | 1013 KiB | 16 Q