3v4l.org

run code in 300+ PHP versions simultaneously
<?php printf("Initial: %fMB\n", memory_get_peak_usage() / 1048576); $string = ''; do { $string .= 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.'; } while (strlen($string) < 10485760); printf("Loaded string: %fMB\n", memory_get_peak_usage() / 1048576); $array = explode("Lorem", $string); printf("Exploded string: %fMB\n", memory_get_peak_usage() / 1048576);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 8
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/fUZ47
function name:  (null)
number of ops:  32
compiled vars:  !0 = $string, !1 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'printf'
          1        SEND_VAL                                                 'Initial%3A+%25fMB%0A'
          2        INIT_FCALL                                               'memory_get_peak_usage'
          3        DO_ICALL                                         $2      
          4        DIV                                              ~3      $2, 1048576
          5        SEND_VAL                                                 ~3
          6        DO_ICALL                                                 
    5     7        ASSIGN                                                   !0, ''
    8     8    >   ASSIGN_OP                                     8          !0, 'Lorem+Ipsum+is+simply+dummy+text+of+the+printing+and+typesetting+industry.+Lorem+Ipsum+has+been+the+industry%27s+standard+dummy+text+ever+since+the+1500s%2C+when+an+unknown+printer+took+a+galley+of+type+and+scrambled+it+to+make+a+type+specimen+book.+It+has+survived+not+only+five+centuries%2C+but+also+the+leap+into+electronic+typesetting%2C+remaining+essentially+unchanged.+It+was+popularised+in+the+1960s+with+the+release+of+Letraset+sheets+containing+Lorem+Ipsum+passages%2C+and+more+recently+with+desktop+publishing+software+like+Aldus+PageMaker+including+versions+of+Lorem+Ipsum.'
    9     9        STRLEN                                           ~7      !0
         10        IS_SMALLER                                               ~7, 10485760
         11      > JMPNZ                                                    ~8, ->8
   11    12    >   INIT_FCALL                                               'printf'
         13        SEND_VAL                                                 'Loaded+string%3A+%25fMB%0A'
         14        INIT_FCALL                                               'memory_get_peak_usage'
         15        DO_ICALL                                         $9      
         16        DIV                                              ~10     $9, 1048576
         17        SEND_VAL                                                 ~10
         18        DO_ICALL                                                 
   13    19        INIT_FCALL                                               'explode'
         20        SEND_VAL                                                 'Lorem'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                         $12     
         23        ASSIGN                                                   !1, $12
   15    24        INIT_FCALL                                               'printf'
         25        SEND_VAL                                                 'Exploded+string%3A+%25fMB%0A'
         26        INIT_FCALL                                               'memory_get_peak_usage'
         27        DO_ICALL                                         $14     
         28        DIV                                              ~15     $14, 1048576
         29        SEND_VAL                                                 ~15
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.96 ms | 1396 KiB | 19 Q