3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.47 ms | 1395 KiB | 15 Q