3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('display_errors', 1); json_encode("\xFF"); var_dump(error_get_last()); echo "-------\n"; ini_set('display_errors', 0); json_encode("\xFF"); var_dump(error_get_last());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ilDl1
function name:  (null)
number of ops:  26
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'display_errors'
          2        SEND_VAL                                                 1
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'json_encode'
          5        SEND_VAL                                                 '%FF'
          6        DO_ICALL                                                 
    4     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'error_get_last'
          9        DO_ICALL                                         $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                                 
    6    12        ECHO                                                     '-------%0A'
    9    13        INIT_FCALL                                               'ini_set'
         14        SEND_VAL                                                 'display_errors'
         15        SEND_VAL                                                 0
         16        DO_ICALL                                                 
   10    17        INIT_FCALL                                               'json_encode'
         18        SEND_VAL                                                 '%FF'
         19        DO_ICALL                                                 
   11    20        INIT_FCALL                                               'var_dump'
         21        INIT_FCALL                                               'error_get_last'
         22        DO_ICALL                                         $6      
         23        SEND_VAR                                                 $6
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.21 ms | 1395 KiB | 21 Q