3v4l.org

run code in 300+ PHP versions simultaneously
<?php $isAdult = false; $truth = 2 < 3; echo $truth ? 'Yes two is less than three.' : 'NO two is NOT less than three.';?> <li class='<?php echo $isAdult ? "adult" : "child"; ?>'> <?php $array = ['1','2','3', '4', '5', '6']; print_r(array_slice($array, 0, 3)); ?>
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 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
Branch analysis from position: 11
filename:       /in/TDZFj
function name:  (null)
number of ops:  24
compiled vars:  !0 = $isAdult, !1 = $truth, !2 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <false>
    3     1        ASSIGN                                                   !1, <true>
    5     2      > JMPZ                                                     !1, ->5
          3    >   QM_ASSIGN                                        ~5      'Yes+two+is+less+than+three.'
          4      > JMP                                                      ->6
          5    >   QM_ASSIGN                                        ~5      'NO+two+is+NOT+less+than+three.'
          6    >   ECHO                                                     ~5
    6     7        ECHO                                                     '%0A%3Cli+class%3D%27'
    7     8      > JMPZ                                                     !0, ->11
          9    >   QM_ASSIGN                                        ~6      'adult'
         10      > JMP                                                      ->12
         11    >   QM_ASSIGN                                        ~6      'child'
         12    >   ECHO                                                     ~6
         13        ECHO                                                     '%27%3E%0A++++%0A'
    9    14        ASSIGN                                                   !2, <array>
   10    15        INIT_FCALL                                               'print_r'
         16        INIT_FCALL                                               'array_slice'
         17        SEND_VAR                                                 !2
         18        SEND_VAL                                                 0
         19        SEND_VAL                                                 3
         20        DO_ICALL                                         $8      
         21        SEND_VAR                                                 $8
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.98 ms | 1387 KiB | 17 Q