3v4l.org

run code in 300+ PHP versions simultaneously
<?php // пример от Максима Иванова error_reporting( E_ERROR ); function foo(){}; // return void $arr = [1, 2, 3]; echo (false ?? "Next step !") . " | "; // true echo (NULL ?? "Next step !") . " | "; // Next step ! echo ("" ?? "Next step !") . " | "; // true echo (0 ?? "Next step !") . " | "; // 0 echo (foo() ?? "Next step !") . " | "; // Next step ! echo ($arr ?? "Next step !") . " | "; // Array echo ($arr[1] ?? "Next step !") . " | "; // 2
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kqgib
function name:  (null)
number of ops:  36
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 1
          2        DO_ICALL                                                 
    7     3        ASSIGN                                                   !0, <array>
    9     4        COALESCE                                         ~3      <false>
          5        QM_ASSIGN                                        ~3      'Next+step+%21'
          6        CONCAT                                           ~4      ~3, '+%7C+'
          7        ECHO                                                     ~4
   10     8        COALESCE                                         ~5      null
          9        QM_ASSIGN                                        ~5      'Next+step+%21'
         10        CONCAT                                           ~6      ~5, '+%7C+'
         11        ECHO                                                     ~6
   11    12        COALESCE                                         ~7      ''
         13        QM_ASSIGN                                        ~7      'Next+step+%21'
         14        CONCAT                                           ~8      ~7, '+%7C+'
         15        ECHO                                                     ~8
   12    16        COALESCE                                         ~9      0
         17        QM_ASSIGN                                        ~9      'Next+step+%21'
         18        CONCAT                                           ~10     ~9, '+%7C+'
         19        ECHO                                                     ~10
   13    20        INIT_FCALL                                               'foo'
         21        DO_FCALL                                      0  $11     
         22        COALESCE                                         ~12     $11
         23        QM_ASSIGN                                        ~12     'Next+step+%21'
         24        CONCAT                                           ~13     ~12, '+%7C+'
         25        ECHO                                                     ~13
   14    26        COALESCE                                         ~14     !0
         27        QM_ASSIGN                                        ~14     'Next+step+%21'
         28        CONCAT                                           ~15     ~14, '+%7C+'
         29        ECHO                                                     ~15
   15    30        FETCH_DIM_IS                                     ~16     !0, 1
         31        COALESCE                                         ~17     ~16
         32        QM_ASSIGN                                        ~17     'Next+step+%21'
         33        CONCAT                                           ~18     ~17, '+%7C+'
         34        ECHO                                                     ~18
         35      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kqgib
function name:  foo
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.94 ms | 996 KiB | 15 Q