3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* this is interned as a literal string */ $literal = 'o'; /* ord is not called, it's optimized away */ $ord = ord('o'); /* chr is called and returns the interned string */ $chr = chr($ord); var_dump($chr, is_literal($chr));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nJhc1
function name:  (null)
number of ops:  14
compiled vars:  !0 = $literal, !1 = $ord, !2 = $chr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'o'
    6     1        ASSIGN                                                   !1, 111
    9     2        INIT_FCALL                                               'chr'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !2, $5
   11     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !2
          8        INIT_FCALL_BY_NAME                                       'is_literal'
          9        SEND_VAR_EX                                              !2
         10        DO_FCALL                                      0  $7      
         11        SEND_VAR                                                 $7
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.18 ms | 1394 KiB | 17 Q