3v4l.org

run code in 300+ PHP versions simultaneously
<?php $e = new \Exception("Hello\0World"); var_dump(strlen($e->getMessage())); var_dump($e->getMessage() === "Hello\0World"); var_dump($e->getMessage());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Kt5QS
function name:  (null)
number of ops:  22
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'Exception'
          1        SEND_VAL_EX                                              'Hello%00World'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    5     4        INIT_FCALL                                               'var_dump'
          5        INIT_METHOD_CALL                                         !0, 'getMessage'
          6        DO_FCALL                                      0  $4      
          7        STRLEN                                           ~5      $4
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                                 
    6    10        INIT_FCALL                                               'var_dump'
         11        INIT_METHOD_CALL                                         !0, 'getMessage'
         12        DO_FCALL                                      0  $7      
         13        IS_IDENTICAL                                     ~8      $7, 'Hello%00World'
         14        SEND_VAL                                                 ~8
         15        DO_ICALL                                                 
    7    16        INIT_FCALL                                               'var_dump'
         17        INIT_METHOD_CALL                                         !0, 'getMessage'
         18        DO_FCALL                                      0  $10     
         19        SEND_VAR                                                 $10
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.43 ms | 1004 KiB | 14 Q