3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str= 'This is some example text , I want to print this variable in 3 lines, also.'; $x = '90'; $array = explode( "\n", wordwrap( $str, $x)); echo implode("<br>",$array); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qW5fVh
function name:  (null)
number of ops:  17
compiled vars:  !0 = $str, !1 = $x, !2 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'This+is+some+example+text+%2C+I+want+to+print+this+variable+in+3+lines%2C+also.'
    3     1        ASSIGN                                                   !1, '90'
    4     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%0A'
          4        INIT_FCALL                                               'wordwrap'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $5      
          8        SEND_VAR                                                 $5
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !2, $6
    5    11        INIT_FCALL                                               'implode'
         12        SEND_VAL                                                 '%3Cbr%3E'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                         $8      
         15        ECHO                                                     $8
    6    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.67 ms | 1399 KiB | 19 Q