3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(PREG_SPLIT_NO_EMPTY); var_dump( preg_split( '/[^a-z]+/i', 'Class::function', PREG_SPLIT_NO_EMPTY)); var_dump( preg_replace( '/[^a-z]+/i', '_', 'Class::function'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qFTJj
function name:  (null)
number of ops:  20
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 1
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'preg_split'
          5        SEND_VAL                                                 '%2F%5B%5Ea-z%5D%2B%2Fi'
          6        SEND_VAL                                                 'Class%3A%3Afunction'
          7        SEND_VAL                                                 1
          8        DO_ICALL                                         $1      
          9        SEND_VAR                                                 $1
         10        DO_ICALL                                                 
    4    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'preg_replace'
         13        SEND_VAL                                                 '%2F%5B%5Ea-z%5D%2B%2Fi'
         14        SEND_VAL                                                 '_'
         15        SEND_VAL                                                 'Class%3A%3Afunction'
         16        DO_ICALL                                         $3      
         17        SEND_VAR                                                 $3
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.96 ms | 1395 KiB | 19 Q