3v4l.org

run code in 300+ PHP versions simultaneously
<?php $countingName = 'Some sdfg sdfsd fs dfsdf'; $countingName = explode("\n", $countingName, 1); $countingName = $countingName[0]; $countingName = substr($countingName, 0, 1000); $countingName = preg_replace('/\s+/', ' ', $countingName); echo $countingName;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/l5fhY
function name:  (null)
number of ops:  23
compiled vars:  !0 = $countingName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Some+sdfg+sdfsd+fs+++dfsdf'
    5     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%0A'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 1
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    6     7        FETCH_DIM_R                                      ~4      !0, 0
          8        ASSIGN                                                   !0, ~4
    7     9        INIT_FCALL                                               'substr'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 0
         12        SEND_VAL                                                 1000
         13        DO_ICALL                                         $6      
         14        ASSIGN                                                   !0, $6
    8    15        INIT_FCALL                                               'preg_replace'
         16        SEND_VAL                                                 '%2F%5Cs%2B%2F'
         17        SEND_VAL                                                 '+'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $8      
         20        ASSIGN                                                   !0, $8
   10    21        ECHO                                                     !0
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.91 ms | 1395 KiB | 19 Q