3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL);ini_set('display_errors', true);ini_set('html_errors', false);// Simple array:$array = array(1, 2);$count = count($array);for ($i = 0; $i < $count; $i++) {    echo "\nChecking $i: \n";    echo "Bad: " . $array['$i'] . "\n";    echo "Good: " . $array[$i] . "\n";    echo "Bad: {$array['$i']}\n";    echo "Good: {$array[$i]}\n";}
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KX7BL
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
          3        INIT_FCALL                                               'ini_set'
          4        SEND_VAL                                                 'display_errors'
          5        FETCH_CONSTANT                                   ~1      '%C2%A0true'
          6        SEND_VAL                                                 ~1
          7        DO_ICALL                                                 
          8        INIT_FCALL                                               'ini_set'
          9        SEND_VAL                                                 'html_errors'
         10        FETCH_CONSTANT                                   ~3      '%C2%A0false'
         11        SEND_VAL                                                 ~3
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.07 ms | 1394 KiB | 17 Q