3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { var_dump(preg_match_all('/\\w+/u', "-foo-barлолbaz-", $m), $m); } foo(); var_dump(setlocale(LC_COLLATE, 'ru_RU.UTF-8', 'ru_RU', 'ru')); foo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YambN
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'foo'
          1        DO_FCALL                                      0          
    7     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'setlocale'
          4        SEND_VAL                                                 3
          5        SEND_VAL                                                 'ru_RU.UTF-8'
          6        SEND_VAL                                                 'ru_RU'
          7        SEND_VAL                                                 'ru'
          8        DO_ICALL                                         $1      
          9        SEND_VAR                                                 $1
         10        DO_ICALL                                                 
    8    11        INIT_FCALL                                               'foo'
         12        DO_FCALL                                      0          
         13      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YambN
function name:  foo
number of ops:  10
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%5Cw%2B%2Fu'
          3        SEND_VAL                                                 '-foo-bar%D0%BB%D0%BE%D0%BBbaz-'
          4        SEND_REF                                                 !0
          5        DO_ICALL                                         $1      
          6        SEND_VAR                                                 $1
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    4     9      > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.68 ms | 1398 KiB | 21 Q