3v4l.org

run code in 300+ PHP versions simultaneously
<?php defined('EMPTY_STRING') or define('EMPTY_STRING', strval(NULL)); if(implode(EMPTY_STRING, array_fill(0, 10, PHP_EOL)) === str_repeat(PHP_EOL, 10)) { echo '='; } else { echo '!='; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 2, Position 2 = 8
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 26
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/4otSP
function name:  (null)
number of ops:  28
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DEFINED                                          ~0      'EMPTY_STRING'
          1      > JMPNZ_EX                                         ~0      ~0, ->8
          2    >   INIT_FCALL                                               'define'
          3        SEND_VAL                                                 'EMPTY_STRING'
          4        CAST                                          6  ~1      null
          5        SEND_VAL                                                 ~1
          6        DO_ICALL                                         $2      
          7        BOOL                                             ~0      $2
    5     8    >   INIT_FCALL                                               'implode'
          9        FETCH_CONSTANT                                   ~3      'EMPTY_STRING'
         10        SEND_VAL                                                 ~3
         11        INIT_FCALL                                               'array_fill'
         12        SEND_VAL                                                 0
         13        SEND_VAL                                                 10
         14        SEND_VAL                                                 '%0A'
         15        DO_ICALL                                         $4      
         16        SEND_VAR                                                 $4
         17        DO_ICALL                                         $5      
         18        INIT_FCALL                                               'str_repeat'
         19        SEND_VAL                                                 '%0A'
         20        SEND_VAL                                                 10
         21        DO_ICALL                                         $6      
         22        IS_IDENTICAL                                             $5, $6
         23      > JMPZ                                                     ~7, ->26
    6    24    >   ECHO                                                     '%3D'
         25      > JMP                                                      ->27
    8    26    >   ECHO                                                     '%21%3D'
    9    27    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.04 ms | 1395 KiB | 21 Q