3v4l.org

run code in 300+ PHP versions simultaneously
<?php printf("PHP %d\n", defined('PHP_MAJOR_VERSION') ? PHP_MAJOR_VERSION : PHP_VERSION); if (false) { $a = 1; $b = array(); echo $a + $b; } echo "Finished\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
Branch analysis from position: 13
filename:       /in/TrMbW
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'printf'
          1        SEND_VAL                                                 'PHP+%25d%0A'
          2      > JMPZ                                                     <true>, ->5
          3    >   QM_ASSIGN                                        ~2      8
          4      > JMP                                                      ->6
          5    >   QM_ASSIGN                                        ~2      '8.3.0'
          6    >   SEND_VAL                                                 ~2
          7        DO_ICALL                                                 
    5     8      > JMPZ                                                     <false>, ->13
    6     9    >   ASSIGN                                                   !0, 1
    7    10        ASSIGN                                                   !1, <array>
    8    11        ADD                                              ~6      !0, !1
         12        ECHO                                                     ~6
   11    13    >   ECHO                                                     'Finished%0A'
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.83 ms | 999 KiB | 14 Q