3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s['longDescription'] = '*****'; $blurb = preg_replace_callback("/([\*]{2,})/", function( $match) { return str_repeat( "&#9733;", strlen( $match[1])); } , $s['longDescription']); echo $blurb;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q7SAT
function name:  (null)
number of ops:  12
compiled vars:  !0 = $s, !1 = $blurb
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 'longDescription'
          1        OP_DATA                                                  '%2A%2A%2A%2A%2A'
    3     2        INIT_FCALL                                               'preg_replace_callback'
          3        SEND_VAL                                                 '%2F%28%5B%5C%2A%5D%7B2%2C%7D%29%2F'
          4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FQ7SAT%3A3%240'
    4     5        SEND_VAL                                                 ~3
    5     6        FETCH_DIM_R                                      ~4      !0, 'longDescription'
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                         $5      
    3     9        ASSIGN                                                   !1, $5
    6    10        ECHO                                                     !1
         11      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FQ7SAT%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q7SAT
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'str_repeat'
          2        SEND_VAL                                                 '%26%239733%3B'
          3        FETCH_DIM_R                                      ~1      !0, 1
          4        STRLEN                                           ~2      ~1
          5        SEND_VAL                                                 ~2
          6        DO_ICALL                                         $3      
          7      > RETURN                                                   $3
          8*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FQ7SAT%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.2 ms | 1395 KiB | 17 Q