3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bad_char = "♥"; $error_msg = "Illegal: $bad_char"; $code = "I \$♥ PHP"; if ( mb_strpos( $code, $bad_char) ) { trigger_error( $error_msg ); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/epp66
function name:  (null)
number of ops:  14
compiled vars:  !0 = $bad_char, !1 = $error_msg, !2 = $code
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%E2%99%A5'
    3     1        NOP                                                      
          2        FAST_CONCAT                                      ~4      'Illegal%3A+', !0
          3        ASSIGN                                                   !1, ~4
    4     4        ASSIGN                                                   !2, 'I+%24%E2%99%A5+PHP'
    5     5        INIT_FCALL                                               'mb_strpos'
          6        SEND_VAR                                                 !2
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $7      
          9      > JMPZ                                                     $7, ->13
    7    10    >   INIT_FCALL                                               'trigger_error'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
    8    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.58 ms | 1394 KiB | 17 Q