3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_replace_callback('~[A-Z]~', function($_) { return 32 + $_[1]; }, 'Important: you are NOT allowed to use a built-in function that converts the string (or just one character) to lowercase (such as ToLower() in .NET, strtolower() in PHP , ...)! You\'re allowed to use all other built-in functions, however.');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/imd1N
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_replace_callback'
          1        SEND_VAL                                                 '%7E%5BA-Z%5D%7E'
          2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fimd1N%3A2%240'
          3        SEND_VAL                                                 ~0
          4        SEND_VAL                                                 'Important%3A+you+are+NOT+allowed+to+use+a+built-in+function+that+converts+the+string+%28or+just+one+character%29+to+lowercase+%28such+as+ToLower%28%29+in+.NET%2C+strtolower%28%29+in+PHP+%2C+...%29%21+You%27re+allowed+to+use+all+other+built-in+functions%2C+however.'
          5        DO_ICALL                                         $1      
          6        ECHO                                                     $1
          7      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fimd1N%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/imd1N
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $_
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   RECV                                             !0      
          1        FETCH_DIM_R                                      ~1      !0, 1
          2        ADD                                              ~2      32, ~1
          3      > RETURN                                                   ~2
          4*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fimd1N%3A2%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.95 ms | 1395 KiB | 15 Q