3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "C#maj7"; $qualityVal = ""; if (true) { $qualityVal .= substr($string, 2); } $num = 10; $num += 10; class Hello { } $hello = new Hello(); echo $hello->toString(); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 8
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/Hqsjh
function name:  (null)
number of ops:  17
compiled vars:  !0 = $string, !1 = $qualityVal, !2 = $num, !3 = $hello
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'C%23maj7'
    3     1        ASSIGN                                                   !1, ''
    4     2      > JMPZ                                                     <true>, ->8
    5     3    >   INIT_FCALL                                               'substr'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 2
          6        DO_ICALL                                         $6      
          7        ASSIGN_OP                                     8          !1, $6
    7     8    >   ASSIGN                                                   !2, 10
    8     9        ASSIGN_OP                                     1          !2, 10
   11    10        NEW                                              $10     'Hello'
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !3, $10
   12    13        INIT_METHOD_CALL                                         !3, 'toString'
         14        DO_FCALL                                      0  $13     
         15        ECHO                                                     $13
   13    16      > RETURN                                                   1

Class Hello: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.38 ms | 1394 KiB | 15 Q