3v4l.org

run code in 300+ PHP versions simultaneously
<?php function привет() { echo 'привет'; } $str = 'привет'; $str2 = 'Hello'; echo $str . "\n"; echo strtoupper($str) . "\n"; echo $str2 . "\n"; echo strtoupper($str2) . "\n"; echo $str.$str2 . "\n"; echo $str == strtoupper($str); привет();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DZbjo
function name:  (null)
number of ops:  27
compiled vars:  !0 = $str, !1 = $str2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, '%D0%BF%D1%80%D0%B8%D0%B2%D0%B5%D1%82'
    9     1        ASSIGN                                                   !1, 'Hello'
   11     2        CONCAT                                           ~4      !0, '%0A'
          3        ECHO                                                     ~4
   12     4        INIT_FCALL                                               'strtoupper'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $5      
          7        CONCAT                                           ~6      $5, '%0A'
          8        ECHO                                                     ~6
   13     9        CONCAT                                           ~7      !1, '%0A'
         10        ECHO                                                     ~7
   14    11        INIT_FCALL                                               'strtoupper'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $8      
         14        CONCAT                                           ~9      $8, '%0A'
         15        ECHO                                                     ~9
   15    16        CONCAT                                           ~10     !0, !1
         17        CONCAT                                           ~11     ~10, '%0A'
         18        ECHO                                                     ~11
   16    19        INIT_FCALL                                               'strtoupper'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                         $12     
         22        IS_EQUAL                                         ~13     !0, $12
         23        ECHO                                                     ~13
   18    24        INIT_FCALL                                               '%D0%BF%D1%80%D0%B8%D0%B2%D0%B5%D1%82'
         25        DO_FCALL                                      0          
         26      > RETURN                                                   1

Function %D0%BF%D1%80%D0%B8%D0%B2%D0%B5%D1%82:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DZbjo
function name:  привет
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     '%D0%BF%D1%80%D0%B8%D0%B2%D0%B5%D1%82'
    6     1      > RETURN                                                   null

End of function %D0%BF%D1%80%D0%B8%D0%B2%D0%B5%D1%82

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.75 ms | 1390 KiB | 16 Q