3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(PHP_INT_MAX); function explodeTrim($delimiter, $string, $limit = PHP_INT_MAX) { return explode($delimiter, $string, $limit); } $emails = 'test1@example.com, test2@example.com'; var_dump(explodeTrim(',', $emails)); // using default limit=PHP_INT_MAX var_dump(explodeTrim(',', $emails, 0x7FFFFFFF)); var_dump(explode(',', $emails));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fllad
function name:  (null)
number of ops:  27
compiled vars:  !0 = $emails
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 9223372036854775807
          2        DO_ICALL                                                 
    9     3        ASSIGN                                                   !0, 'test1%40example.com%2C+test2%40example.com'
   10     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'explodetrim'
          6        SEND_VAL                                                 '%2C'
          7        SEND_VAR                                                 !0
          8        DO_FCALL                                      0  $3      
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                                 
   11    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'explodetrim'
         13        SEND_VAL                                                 '%2C'
         14        SEND_VAR                                                 !0
         15        SEND_VAL                                                 2147483647
         16        DO_FCALL                                      0  $5      
         17        SEND_VAR                                                 $5
         18        DO_ICALL                                                 
   12    19        INIT_FCALL                                               'var_dump'
         20        INIT_FCALL                                               'explode'
         21        SEND_VAL                                                 '%2C'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                         $7      
         24        SEND_VAR                                                 $7
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Function explodetrim:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fllad
function name:  explodeTrim
number of ops:  10
compiled vars:  !0 = $delimiter, !1 = $string, !2 = $limit
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV_INIT                                        !2      <const ast>
    6     3        INIT_FCALL                                               'explode'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $3      
          8      > RETURN                                                   $3
    7     9*     > RETURN                                                   null

End of function explodetrim

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.73 ms | 1399 KiB | 19 Q